summaryrefslogtreecommitdiff
path: root/tools/source
diff options
context:
space:
mode:
Diffstat (limited to 'tools/source')
-rw-r--r--tools/source/generic/gen.cxx8
-rw-r--r--tools/source/generic/poly.cxx6
2 files changed, 7 insertions, 7 deletions
diff --git a/tools/source/generic/gen.cxx b/tools/source/generic/gen.cxx
index 0452f8ea2049..69dc4d068ced 100644
--- a/tools/source/generic/gen.cxx
+++ b/tools/source/generic/gen.cxx
@@ -99,10 +99,10 @@ tools::Rectangle& tools::Rectangle::Intersection( const tools::Rectangle& rRect
return *this;
}
- // Justify rectangle
+ // Normalize rectangle
tools::Rectangle aTmpRect( rRect );
- Justify();
- aTmpRect.Justify();
+ Normalize();
+ aTmpRect.Normalize();
// Perform intersection
mnLeft = std::max( mnLeft, aTmpRect.mnLeft );
@@ -117,7 +117,7 @@ tools::Rectangle& tools::Rectangle::Intersection( const tools::Rectangle& rRect
return *this;
}
-void tools::Rectangle::Justify()
+void tools::Rectangle::Normalize()
{
if ((mnRight < mnLeft) && (!IsWidthEmpty()))
{
diff --git a/tools/source/generic/poly.cxx b/tools/source/generic/poly.cxx
index 25f15d5fd00a..2c12ad777ec1 100644
--- a/tools/source/generic/poly.cxx
+++ b/tools/source/generic/poly.cxx
@@ -121,7 +121,7 @@ ImplPolygon::ImplPolygon( const tools::Rectangle& rRect, sal_uInt32 nHorzRound,
if ( !rRect.IsEmpty() )
{
tools::Rectangle aRect( rRect );
- aRect.Justify(); // SJ: i9140
+ aRect.Normalize(); // SJ: i9140
nHorzRound = std::min( nHorzRound, static_cast<sal_uInt32>(std::abs( aRect.GetWidth() >> 1 )) );
nVertRound = std::min( nVertRound, static_cast<sal_uInt32>(std::abs( aRect.GetHeight() >> 1 )) );
@@ -1443,9 +1443,9 @@ void Polygon::Clip( const tools::Rectangle& rRect )
// Use PolyPolygon::Clip().
assert( !HasFlags());
- // #105251# Justify rect before edge filtering
+ // #105251# Normalize rect before edge filtering
tools::Rectangle aJustifiedRect( rRect );
- aJustifiedRect.Justify();
+ aJustifiedRect.Normalize();
sal_uInt16 nSourceSize = mpImplPolygon->mnPoints;
ImplPolygonPointFilter aPolygon( nSourceSize );