diff options
Diffstat (limited to 'sd/source/ui/func/fuinsert.cxx')
-rw-r--r-- | sd/source/ui/func/fuinsert.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sd/source/ui/func/fuinsert.cxx b/sd/source/ui/func/fuinsert.cxx index 7b66e6a53348..970076977ec2 100644 --- a/sd/source/ui/func/fuinsert.cxx +++ b/sd/source/ui/func/fuinsert.cxx @@ -338,7 +338,7 @@ void FuInsertOLE::DoExecute( SfxRequest& rReq ) Size aSize( aSz.Width, aSz.Height ); - if (aSize.Height() == 0 || aSize.Width() == 0) + if (aSize.IsEmpty()) { // rectangle with balanced edge ratio aSize.setWidth( 14100 ); @@ -514,7 +514,7 @@ void FuInsertOLE::DoExecute( SfxRequest& rReq ) aSize =Size( aSz.Width, aSz.Height ); aMapUnit = VCLUnoHelper::UnoEmbed2VCLMapUnit( xObj->getMapUnit( nAspect ) ); - if (aSize.Height() == 0 || aSize.Width() == 0) + if (aSize.IsEmpty()) { // rectangle with balanced edge ratio aSize.setWidth( 14100 ); |