Commit cf8bba90 authored by Thomas Holder's avatar Thomas Holder

fix #305 Transform->Skew->Horizontal direction

parent 8cd6e657
Pipeline #66482939 passed with stages
in 123 minutes and 16 seconds
......@@ -837,8 +837,9 @@ void Transformation::applyPageSkew(Inkscape::Selection *selection)
getDesktop()->getMessageStack()->flash(Inkscape::WARNING_MESSAGE, _("Transform matrix is singular, <b>not used</b>."));
return;
}
double skewX = tan(-angleX);
double skewX = tan(angleX);
double skewY = tan(angleY);
skewX *= getDesktop()->yaxisdir();
skewY *= getDesktop()->yaxisdir();
sp_item_skew_rel (item, skewX, skewY);
} else { // absolute displacement
......@@ -884,8 +885,9 @@ void Transformation::applyPageSkew(Inkscape::Selection *selection)
getDesktop()->getMessageStack()->flash(Inkscape::WARNING_MESSAGE, _("Transform matrix is singular, <b>not used</b>."));
return;
}
double skewX = tan(-angleX);
double skewX = tan(angleX);
double skewY = tan(angleY);
skewX *= getDesktop()->yaxisdir();
skewY *= getDesktop()->yaxisdir();
selection->skewRelative(*center, skewX, skewY);
} else { // absolute displacement
......
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