From 54d04963a68415518b3487cd7172ee9834e42d86 Mon Sep 17 00:00:00 2001 From: Thomas Holder Date: Wed, 14 Aug 2019 19:16:52 +0200 Subject: fix #371 guides label upside down --- src/object/sp-guide.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/object') diff --git a/src/object/sp-guide.cpp b/src/object/sp-guide.cpp index 6230e10eb..38924de50 100644 --- a/src/object/sp-guide.cpp +++ b/src/object/sp-guide.cpp @@ -131,7 +131,7 @@ void SPGuide::set(SPAttributeEnum key, const gchar *value) { // stores inverted y-axis coordinates if (document->is_yaxisdown()) { - direction[Geom::Y] *= -1.0; + direction[Geom::X] *= -1.0; } direction.normalize(); @@ -217,7 +217,7 @@ SPGuide *SPGuide::createSPGuide(SPDocument *doc, Geom::Point const &pt1, Geom::P // stores inverted y-axis coordinates if (doc->is_yaxisdown()) { newy = doc->getHeight().value("px") - newy; - n[Geom::Y] *= -1.0; + n[Geom::X] *= -1.0; } if( root->viewBox_set ) { @@ -442,7 +442,7 @@ void SPGuide::set_normal(Geom::Point const normal_to_line, bool const commit) // stores inverted y-axis coordinates if (document->is_yaxisdown()) { - normal[Geom::Y] *= -1.0; + normal[Geom::X] *= -1.0; } sp_repr_set_point(getRepr(), "orientation", normal); -- cgit v1.2.3