[Libreoffice-commits] core.git: svx/source
Mike Kaganski (via logerrit)
logerrit at kemper.freedesktop.org
Wed May 5 13:08:57 UTC 2021
svx/source/svdraw/svdoashp.cxx | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
New commits:
commit 7b506496fdff341d2288fa36bd4300a92cf979a9
Author: Mike Kaganski <mike.kaganski at collabora.com>
AuthorDate: Wed May 5 12:24:47 2021 +0200
Commit: Mike Kaganski <mike.kaganski at collabora.com>
CommitDate: Wed May 5 15:08:17 2021 +0200
Don't initialize variables only to reset later
Change-Id: I38d618216099e218827d205e8acaab3aef0c744c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115082
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski at collabora.com>
diff --git a/svx/source/svdraw/svdoashp.cxx b/svx/source/svdraw/svdoashp.cxx
index e5ccc84e7cae..bd0a4b1bc834 100644
--- a/svx/source/svdraw/svdoashp.cxx
+++ b/svx/source/svdraw/svdoashp.cxx
@@ -2515,7 +2515,6 @@ bool SdrObjCustomShape::AdjustTextFrameWidthAndHeight()
}
void SdrObjCustomShape::TakeTextEditArea(Size* pPaperMin, Size* pPaperMax, tools::Rectangle* pViewInit, tools::Rectangle* pViewMin) const
{
- Size aPaperMin,aPaperMax;
tools::Rectangle aViewInit;
TakeTextAnchorRect( aViewInit );
if ( aGeo.nRotationAngle )
@@ -2562,11 +2561,8 @@ void SdrObjCustomShape::TakeTextEditArea(Size* pPaperMin, Size* pPaperMax, tools
nMinWdt = nMaxWdt;
}
}
- aPaperMax.setWidth(nMaxWdt );
- aPaperMax.setHeight(nMaxHgt );
-
- aPaperMin.setWidth(nMinWdt );
- aPaperMin.setHeight(nMinHgt );
+ Size aPaperMax(nMaxWdt, nMaxHgt);
+ Size aPaperMin(nMinWdt, nMinHgt);
if ( pViewMin )
{
More information about the Libreoffice-commits
mailing list