summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorChris Sherlock <chris.sherlock79@gmail.com>2022-07-23 23:48:24 +1000
committerTomaž Vajngerl <quikee@gmail.com>2022-08-24 10:55:15 +0200
commit59210b075b79e4fc58f86542d9947d6ed0073abd (patch)
treeaf9f6c1a8d5de2d2ccde0e8671f9b320775a5f98 /sd
parent51d2e734099e5c5c56393ef9f08007a7df441794 (diff)
tools: rename Rectangle::Justify() to Rectangle::Normalize()
Jusify() normalizes the rectangle so both the Width and Height are positive, without changing the location of the rectangle. It ensures that the x and y coordinates will be moved to the top left of the rectangle. The name is strange, so renaming Justify() to Normalize(). Change-Id: Idbf163e65e52a798e38f785b8961b8042cf0cf2a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137379 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'sd')
-rw-r--r--sd/source/filter/eppt/epptso.cxx2
-rw-r--r--sd/source/ui/func/fuzoom.cxx2
-rw-r--r--sd/source/ui/slidesorter/controller/SlsSelectionFunction.cxx2
3 files changed, 3 insertions, 3 deletions
diff --git a/sd/source/filter/eppt/epptso.cxx b/sd/source/filter/eppt/epptso.cxx
index 41126aedf82d..eae0e5d8c4ab 100644
--- a/sd/source/filter/eppt/epptso.cxx
+++ b/sd/source/filter/eppt/epptso.cxx
@@ -2846,7 +2846,7 @@ void PPTWriter::ImplWritePage( const PHLayout& rLayout, EscherSolverContainer& a
}
aPropOpt.CreateShadowProperties( mXPropSet );
- maRect.Justify();
+ maRect.Normalize();
if ( mnAngle )
ImplFlipBoundingBox( aPropOpt );
aPropOpt.CreateShapeProperties( mXShape );
diff --git a/sd/source/ui/func/fuzoom.cxx b/sd/source/ui/func/fuzoom.cxx
index 871d594d3368..bfa01c179d08 100644
--- a/sd/source/ui/func/fuzoom.cxx
+++ b/sd/source/ui/func/fuzoom.cxx
@@ -131,7 +131,7 @@ bool FuZoom::MouseMove(const MouseEvent& rMEvt)
{
::tools::Rectangle aRect(aBeginPos, aEndPos);
aZoomRect = aRect;
- aZoomRect.Justify();
+ aZoomRect.Normalize();
mpViewShell->DrawMarkRect(aZoomRect);
bVisible = true;
}
diff --git a/sd/source/ui/slidesorter/controller/SlsSelectionFunction.cxx b/sd/source/ui/slidesorter/controller/SlsSelectionFunction.cxx
index c710a4c1be51..450fdd294a55 100644
--- a/sd/source/ui/slidesorter/controller/SlsSelectionFunction.cxx
+++ b/sd/source/ui/slidesorter/controller/SlsSelectionFunction.cxx
@@ -1390,7 +1390,7 @@ void MultiSelectionModeHandler::UpdateSelection()
mnSecondIndex = nIndexUnderMouse;
Range aRange (mnAnchorIndex, mnSecondIndex);
- aRange.Justify();
+ aRange.Normalize();
for (sal_Int32 nIndex=0; nIndex<nPageCount; ++nIndex)
{