summaryrefslogtreecommitdiffstats
path: root/src/ui
diff options
context:
space:
mode:
authorThomas Holder <thomas@thomas-holder.de>2019-06-17 06:11:16 +0000
committerThomas Holder <thomas@thomas-holder.de>2019-06-17 06:11:16 +0000
commitcf8bba906c73f5af9a51d960fe45c7df2a2bb858 (patch)
treeb5d2ee3b05b40eb07cb0eff6ddf2b777f7db85c3 /src/ui
parentUpdate it.po to current inkscape.pot file (diff)
downloadinkscape-cf8bba906c73f5af9a51d960fe45c7df2a2bb858.tar.gz
inkscape-cf8bba906c73f5af9a51d960fe45c7df2a2bb858.zip
fix #305 Transform->Skew->Horizontal direction
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/dialog/transformation.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ui/dialog/transformation.cpp b/src/ui/dialog/transformation.cpp
index d4649ddd1..ac6d134e0 100644
--- a/src/ui/dialog/transformation.cpp
+++ b/src/ui/dialog/transformation.cpp
@@ -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