Commit bc2b876a authored by Jan Hambrecht's avatar Jan Hambrecht

fix calculation of actual rotation which make the tests pass again


svn path=/trunk/koffice/; revision=690916
parent faf8a80d
......@@ -455,7 +455,7 @@ double KoShape::rotation() const {
return NAN;
// calculate the angle from the matrix elements
double angle = atan2( d->localMatrix.m21(), d->localMatrix.m11() ) * 180.0 / M_PI;
double angle = atan2( -d->localMatrix.m21(), d->localMatrix.m11() ) * 180.0 / M_PI;
if( angle < 0.0 )
angle += 360.0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment