summaryrefslogtreecommitdiff log msg author committer range
path: root/basegfx/source/polygon
diff options
 context: 12345678910152025303540 space: includeignore mode: unifiedssdiffstat only
author committer Fridrich Štrba 2011-06-22 09:36:20 +0200 Fridrich Štrba 2011-06-22 12:54:25 +0200 bfc8f933669f486931da4808211154ff6d6965c0 (patch) ba7ddd6000964e29b41dc60ecbe61ecc2fbfcfed /basegfx/source/polygon 39770935e4bb889fa987d51af91509932c2fac1d (diff)
Use the sweep flag to determine the drawing direction
The previous solution was giving somehow acceptable results in the majority of cases, but was pretty broken with corner cases where the arc is exactly half of the whole ellipse and where the large arc flag is largely irrelevant. If the sweep flag is equal to 0 drawing goes in the sense of decreasing angles. If it is set, drawing goes in the sense of increasing angles.
Diffstat (limited to 'basegfx/source/polygon')
-rw-r--r--basegfx/source/polygon/b2dsvgpolypolygon.cxx7
1 files changed, 2 insertions, 5 deletions
 diff --git a/basegfx/source/polygon/b2dsvgpolypolygon.cxx b/basegfx/source/polygon/b2dsvgpolypolygon.cxxindex 50a04dbaa075..074cfd9e25d5 100644--- a/basegfx/source/polygon/b2dsvgpolypolygon.cxx+++ b/basegfx/source/polygon/b2dsvgpolypolygon.cxx@@ -787,10 +787,7 @@ namespace basegfx // (since // createPolygonFromEllipseSegment() // normalizes to e.g. cw arc)- const bool bLessThanPi(fmod(fTheta2+2*M_PI-fTheta1,- 2*M_PI)