diff options
author | Tor Lillqvist <tml@collabora.com> | 2017-02-14 22:53:53 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2017-02-14 23:00:26 +0200 |
commit | 34d8dc19a08e2752a4b8d3b3d83b7cf3ac341f1c (patch) | |
tree | 94338638dd5fe640624d68f13af133656f72d359 /svx | |
parent | e86c4d3998011fe8ee835e31e86dfa026e11ac6f (diff) |
tdf#106011: The "swing angle" is negative when counter-clockwise
Change-Id: I1ef77e4c8cf0a6d31b36411a79b576115c32c644
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/customshapes/EnhancedCustomShape2d.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/customshapes/EnhancedCustomShape2d.cxx b/svx/source/customshapes/EnhancedCustomShape2d.cxx index e4254fb5a245..d8b324beb1ad 100644 --- a/svx/source/customshapes/EnhancedCustomShape2d.cxx +++ b/svx/source/customshapes/EnhancedCustomShape2d.cxx @@ -1845,7 +1845,7 @@ void EnhancedCustomShape2d::CreateSubPath( sal_uInt16& rSrcPt, sal_uInt16& rSegm << aStartPoint.Y() << " end: " << aEndPoint.X() << ", " << aEndPoint.Y() << " clockwise: " << int(bClockwise)); - basegfx::B2DPolygon aArc = CreateArc( aRect, bClockwise ? aEndPoint : aStartPoint, bClockwise ? aStartPoint : aEndPoint, bClockwise, aStartPoint == aEndPoint && fSwingAngle > F_PI); + basegfx::B2DPolygon aArc = CreateArc( aRect, bClockwise ? aEndPoint : aStartPoint, bClockwise ? aStartPoint : aEndPoint, bClockwise, aStartPoint == aEndPoint && ((bClockwise && fSwingAngle > F_PI) || (!bClockwise && fSwingAngle < -F_PI))); // Now that we have the arc, move it to aStartPointB2D. basegfx::B2DHomMatrix aMatrix = basegfx::tools::createTranslateB2DHomMatrix(aStartPointB2D.getX(), aStartPointB2D.getY()); aArc.transform(aMatrix); |