summaryrefslogtreecommitdiffstats
path: root/src/ui/tools/calligraphic-tool.cpp
diff options
context:
space:
mode:
authorMarc Jeanmougin <marc@jeanmougin.fr>2018-09-12 16:02:57 +0000
committerMarc Jeanmougin <marc@jeanmougin.fr>2018-09-12 16:02:57 +0000
commit197d4156fb11ec3e608d04e656a7b9e841c341d8 (patch)
tree148f0e5a97cac35451983625eb028f94fc4556d0 /src/ui/tools/calligraphic-tool.cpp
parentMore caching in prefs (diff)
parentAllow adding new properties (diff)
downloadinkscape-197d4156fb11ec3e608d04e656a7b9e841c341d8.tar.gz
inkscape-197d4156fb11ec3e608d04e656a7b9e841c341d8.zip
Merge branch 'master' of gitlab.com:inkscape/inkscape
Diffstat (limited to 'src/ui/tools/calligraphic-tool.cpp')
-rw-r--r--src/ui/tools/calligraphic-tool.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ui/tools/calligraphic-tool.cpp b/src/ui/tools/calligraphic-tool.cpp
index 50c5f413a..b4017e5e7 100644
--- a/src/ui/tools/calligraphic-tool.cpp
+++ b/src/ui/tools/calligraphic-tool.cpp
@@ -288,6 +288,7 @@ bool CalligraphicTool::apply(Geom::Point p) {
// 1b. fixed dc->angle (absolutely flat nib):
double const radians = ( (this->angle - 90) / 180.0 ) * M_PI;
Geom::Point ang1 = Geom::Point(-sin(radians), cos(radians));
+ ang1.y() *= -this->desktop->yaxisdir();
a1 = atan2(ang1);
}