summaryrefslogtreecommitdiffstats
path: root/src/sp-guide.cpp
diff options
context:
space:
mode:
authorKrzysztof Kosi??ski <tweenk.pl@gmail.com>2010-04-05 00:35:52 +0000
committerKrzysztof KosiƄski <tweenk.pl@gmail.com>2010-04-05 00:35:52 +0000
commit0f80d9cd7596336ef16da1db940c383e4fb163e1 (patch)
tree199829347b9c7f7ae581cb3fd80426c0493d113d /src/sp-guide.cpp
parentTranslations. inkscape.pot update (glyph dialog again). (diff)
parentCoords: fix guidelines (diff)
downloadinkscape-0f80d9cd7596336ef16da1db940c383e4fb163e1.tar.gz
inkscape-0f80d9cd7596336ef16da1db940c383e4fb163e1.zip
Second batch of coords fixes (guides, text cursor, zoom)
(bzr r9295)
Diffstat (limited to 'src/sp-guide.cpp')
-rw-r--r--src/sp-guide.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/sp-guide.cpp b/src/sp-guide.cpp
index f5edf7d97..def039937 100644
--- a/src/sp-guide.cpp
+++ b/src/sp-guide.cpp
@@ -217,12 +217,14 @@ static void sp_guide_set(SPObject *object, unsigned int key, const gchar *value)
success += sp_svg_number_read_d(strarray[1], &newy);
g_strfreev (strarray);
if (success == 2) {
- guide->point_on_line = Geom::Point(newx, newy);
+ // Desktop coords fix
+ guide->point_on_line = Geom::Point(newx, sp_document_height(guide->document) - newy);
} else if (success == 1) {
// before 0.46 style guideline definition.
const gchar *attr = SP_OBJECT_REPR(object)->attribute("orientation");
if (attr && !strcmp(attr, "horizontal")) {
- guide->point_on_line = Geom::Point(0, newx);
+ // Desktop coords fix
+ guide->point_on_line = Geom::Point(0, sp_document_height(guide->document) - newx);
} else {
guide->point_on_line = Geom::Point(newx, 0);
}