diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-07-12 14:04:10 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-07-12 15:25:33 +0200 |
commit | 972aea543ef94066946dedd6cf6890d34869d89c (patch) | |
tree | f5d959f4bd28ce89f36ccd38215145bf80798001 /svx/source/unodraw/unoshape.cxx | |
parent | 1afe0df7f3a8d19a034257dcd68e182205dfc649 (diff) |
simplify
Change-Id: I276ba7809b08a359b377ea56259140675c5e00a5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154354
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/unodraw/unoshape.cxx')
-rw-r--r-- | svx/source/unodraw/unoshape.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/svx/source/unodraw/unoshape.cxx b/svx/source/unodraw/unoshape.cxx index b186a95097c2..c22c95ba504a 100644 --- a/svx/source/unodraw/unoshape.cxx +++ b/svx/source/unodraw/unoshape.cxx @@ -2112,9 +2112,7 @@ bool SvxShape::setPropertyValueImpl( const OUString&, const SfxItemPropertyMapEn Size aObjSize( aUnoRect.Width, aUnoRect.Height ); ForceMetricToItemPoolMetric(aTopLeft); ForceMetricToItemPoolMetric(aObjSize); - tools::Rectangle aRect; - aRect.SetPos(aTopLeft); - aRect.SetSize(aObjSize); + tools::Rectangle aRect(aTopLeft, aObjSize); pSdrObject->SetSnapRect(aRect); return true; } |