diff options
Diffstat (limited to 'svx/source/unodraw/unoshape.cxx')
-rw-r--r-- | svx/source/unodraw/unoshape.cxx | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/svx/source/unodraw/unoshape.cxx b/svx/source/unodraw/unoshape.cxx index f5be3192d8c0..86e25f5e3654 100644 --- a/svx/source/unodraw/unoshape.cxx +++ b/svx/source/unodraw/unoshape.cxx @@ -1227,15 +1227,7 @@ void SAL_CALL SvxShape::setSize( const awt::Size& rSize ) if(HasSdrObject()) { - // #i123539# optimization for 3D chart object generation: do not use UNO - // API commands to get the range, this is too expensive since for 3D - // scenes it may recalculate the whole scene since in AOO this depends - // on the contained geometry (layouted to show all content) - const bool b3DConstruction(dynamic_cast< E3dObject* >(GetSdrObject()) && GetSdrObject()->getSdrModelFromSdrObject().isLocked()); - tools::Rectangle aRect( - b3DConstruction ? - tools::Rectangle(maPosition.X, maPosition.Y, maSize.Width, maSize.Height) : - svx_getLogicRectHack(GetSdrObject()) ); + tools::Rectangle aRect( svx_getLogicRectHack(GetSdrObject()) ); Size aLocalSize( rSize.Width, rSize.Height ); ForceMetricToItemPoolMetric(aLocalSize); |