summaryrefslogtreecommitdiff
path: root/vcl/source/gdi/gradient.cxx
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 /vcl/source/gdi/gradient.cxx
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 'vcl/source/gdi/gradient.cxx')
-rw-r--r--vcl/source/gdi/gradient.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/gdi/gradient.cxx b/vcl/source/gdi/gradient.cxx
index 8e9e81f5a6b8..b533edcc4e17 100644
--- a/vcl/source/gdi/gradient.cxx
+++ b/vcl/source/gdi/gradient.cxx
@@ -303,7 +303,7 @@ const sal_uInt32 GRADIENT_DEFAULT_STEPCOUNT = 0;
void Gradient::AddGradientActions(tools::Rectangle const& rRect, GDIMetaFile& rMetaFile)
{
tools::Rectangle aRect(rRect);
- aRect.Justify();
+ aRect.Normalize();
// do nothing if the rectangle is empty
if (aRect.IsEmpty())