summaryrefslogtreecommitdiff
path: root/include/basegfx/utils/rectcliptools.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'include/basegfx/utils/rectcliptools.hxx')
-rw-r--r--include/basegfx/utils/rectcliptools.hxx18
1 files changed, 10 insertions, 8 deletions
diff --git a/include/basegfx/utils/rectcliptools.hxx b/include/basegfx/utils/rectcliptools.hxx
index 9df75ef91bca..f3e4b6b19a62 100644
--- a/include/basegfx/utils/rectcliptools.hxx
+++ b/include/basegfx/utils/rectcliptools.hxx
@@ -49,10 +49,11 @@ namespace basegfx
const Rect& rR )
{
// maxY | minY | maxX | minX
- sal_uInt32 clip = (rP.getX() < rR.getMinX()) << 0;
- clip |= (rP.getX() > rR.getMaxX()) << 1;
- clip |= (rP.getY() < rR.getMinY()) << 2;
- clip |= (rP.getY() > rR.getMaxY()) << 3;
+ sal_uInt32 clip;
+ clip = (rP.getX() < rR.getMinX()) << 0;
+ clip |= (rP.getX() > rR.getMaxX()) << 1;
+ clip |= (rP.getY() < rR.getMinY()) << 2;
+ clip |= (rP.getY() > rR.getMaxY()) << 3;
return clip;
}
@@ -62,10 +63,11 @@ namespace basegfx
const B2IBox& rB )
{
// maxY | minY | maxX | minX
- sal_uInt32 clip = (rP.getX() < rB.getMinX()) << 0;
- clip |= (rP.getX() >= rB.getMaxX()) << 1;
- clip |= (rP.getY() < rB.getMinY()) << 2;
- clip |= (rP.getY() >= rB.getMaxY()) << 3;
+ sal_uInt32 clip;
+ clip = (rP.getX() < rB.getMinX()) << 0;
+ clip |= (rP.getX() >= rB.getMaxX()) << 1;
+ clip |= (rP.getY() < rB.getMinY()) << 2;
+ clip |= (rP.getY() >= rB.getMaxY()) << 3;
return clip;
}