summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2013-10-14 13:17:05 +0000
committertavmjong-free <tavmjong@free.fr>2013-10-14 13:17:05 +0000
commit917478418da526f439edce20efa935080e3c5e11 (patch)
tree32fcb52aeaabee29380f86b705044b6d85ad32db /src
parentChanges to object creation. Fixes some warning in new from template. (diff)
downloadinkscape-917478418da526f439edce20efa935080e3c5e11.tar.gz
inkscape-917478418da526f439edce20efa935080e3c5e11.zip
Fix tangent calculation for counter-clockwise arcs.
(bzr r12687)
Diffstat (limited to 'src')
-rw-r--r--src/2geom/elliptical-arc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/2geom/elliptical-arc.cpp b/src/2geom/elliptical-arc.cpp
index 29e983ad4..d2cb0b707 100644
--- a/src/2geom/elliptical-arc.cpp
+++ b/src/2geom/elliptical-arc.cpp
@@ -360,7 +360,7 @@ EllipticalArc::pointAndDerivatives(Coord t, unsigned int n) const
for ( unsigned int i = 0; i < m; ++i )
{
result.push_back( ea->pointAtAngle(angle) );
- angle += M_PI/2;
+ angle += (_sweep ? M_PI/2 : -M_PI/2);
if ( !(angle < 2*M_PI) ) angle -= 2*M_PI;
}
m = nn / 4;