diff options
| author | Thomas Holder <thomas@thomas-holder.de> | 2018-09-23 19:08:55 +0000 |
|---|---|---|
| committer | Thomas Holder <thomas@thomas-holder.de> | 2018-09-23 19:08:55 +0000 |
| commit | d1c232470fb49f9f88a5c8e831ff02380ec24d8e (patch) | |
| tree | d4094ed00b5aea9d4e35bb8ccba24789fd3c7613 /src/object/sp-guide.cpp | |
| parent | fix .odg and .fx export with inverted y-axis (diff) | |
| download | inkscape-d1c232470fb49f9f88a5c8e831ff02380ec24d8e.tar.gz inkscape-d1c232470fb49f9f88a5c8e831ff02380ec24d8e.zip | |
!SP_ACTIVE_DESKTOP -> is_yaxisdown true
Fixes 3D box --export-png
Diffstat (limited to 'src/object/sp-guide.cpp')
| -rw-r--r-- | src/object/sp-guide.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/object/sp-guide.cpp b/src/object/sp-guide.cpp index acb0707d0..a89af4533 100644 --- a/src/object/sp-guide.cpp +++ b/src/object/sp-guide.cpp @@ -133,7 +133,7 @@ void SPGuide::set(unsigned int key, const gchar *value) { Geom::Point direction(newx, newy); // <sodipodi:guide> stores inverted y-axis coordinates - if (SP_ACTIVE_DESKTOP && SP_ACTIVE_DESKTOP->is_yaxisdown()) { + if (!SP_ACTIVE_DESKTOP || SP_ACTIVE_DESKTOP->is_yaxisdown()) { direction[Geom::Y] *= -1.0; } @@ -184,7 +184,7 @@ void SPGuide::set(unsigned int key, const gchar *value) { } // <sodipodi:guide> stores inverted y-axis coordinates - if (SP_ACTIVE_DESKTOP && SP_ACTIVE_DESKTOP->is_yaxisdown()) { + if (!SP_ACTIVE_DESKTOP || SP_ACTIVE_DESKTOP->is_yaxisdown()) { this->point_on_line[Geom::Y] = document->getHeight().value("px") - this->point_on_line[Geom::Y]; } } else { @@ -229,7 +229,7 @@ SPGuide *SPGuide::createSPGuide(SPDocument *doc, Geom::Point const &pt1, Geom::P } // <sodipodi:guide> stores inverted y-axis coordinates - if (SP_ACTIVE_DESKTOP && SP_ACTIVE_DESKTOP->is_yaxisdown()) { + if (!SP_ACTIVE_DESKTOP || SP_ACTIVE_DESKTOP->is_yaxisdown()) { newy = doc->getHeight().value("px") - newy; n[Geom::Y] *= -1.0; } @@ -386,7 +386,7 @@ void SPGuide::moveto(Geom::Point const point_on_line, bool const commit) double newy = point_on_line.y(); // <sodipodi:guide> stores inverted y-axis coordinates - if (SP_ACTIVE_DESKTOP && SP_ACTIVE_DESKTOP->is_yaxisdown()) { + if (!SP_ACTIVE_DESKTOP || SP_ACTIVE_DESKTOP->is_yaxisdown()) { newy = document->getHeight().value("px") - newy; } @@ -439,7 +439,7 @@ void SPGuide::set_normal(Geom::Point const normal_to_line, bool const commit) auto normal = normal_to_line; // <sodipodi:guide> stores inverted y-axis coordinates - if (SP_ACTIVE_DESKTOP && SP_ACTIVE_DESKTOP->is_yaxisdown()) { + if (!SP_ACTIVE_DESKTOP || SP_ACTIVE_DESKTOP->is_yaxisdown()) { normal[Geom::Y] *= -1.0; } |
