summaryrefslogtreecommitdiff
path: root/basegfx/source
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2014-04-23 08:16:01 +0300
committerTor Lillqvist <tml@collabora.com>2014-04-23 08:16:01 +0300
commita26d592dab62842b97d25045ce8f88a9c068dc97 (patch)
treeafabbc15bd7dc81eb6801fc941c5eb4a65c550ae /basegfx/source
parent8708d30369685ba84a0b9c335fcaccd4814fa842 (diff)
Revert "Remove unused basegfx::tools::containsOnlyHorizontalAndVerticalEdges"
Is used in vcl/win/source/gdi/salgdi.cxx. This reverts commit 34fa29ed4c0fa73d3e07e62cb6ca2577ee115b35. Conflicts: unusedcode.easy Change-Id: I0ee3c2bc0ec5649045ae415b44482f63da360634
Diffstat (limited to 'basegfx/source')
-rw-r--r--basegfx/source/polygon/b2dpolypolygontools.cxx18
1 files changed, 18 insertions, 0 deletions
diff --git a/basegfx/source/polygon/b2dpolypolygontools.cxx b/basegfx/source/polygon/b2dpolypolygontools.cxx
index f904d645bdf3..35bc6ed14d47 100644
--- a/basegfx/source/polygon/b2dpolypolygontools.cxx
+++ b/basegfx/source/polygon/b2dpolypolygontools.cxx
@@ -497,6 +497,24 @@ namespace basegfx
return aRetval;
}
+ bool containsOnlyHorizontalAndVerticalEdges(const B2DPolyPolygon& rCandidate)
+ {
+ if(rCandidate.areControlPointsUsed())
+ {
+ return false;
+ }
+
+ for(sal_uInt32 a(0); a < rCandidate.count(); a++)
+ {
+ if(!containsOnlyHorizontalAndVerticalEdges(rCandidate.getB2DPolygon(a)))
+ {
+ return false;
+ }
+ }
+
+ return true;
+ }
+
B2DPolyPolygon createSevenSegmentPolyPolygon(sal_Char nNumber, bool bLitSegments)
{
// config here