summaryrefslogtreecommitdiffstats
path: root/src/dialogs/export.cpp
diff options
context:
space:
mode:
authorRalf Stephan <ralf@ark.in-berlin.de>2006-02-24 18:33:07 +0000
committerrwst <rwst@users.sourceforge.net>2006-02-24 18:33:07 +0000
commitc9d9afe6d19336eccc34a3cf0255872e2f77a70e (patch)
tree8c0f0b5cac6a906beac775f101584799f4fdd74f /src/dialogs/export.cpp
parentmake sure positive xy widget pos is written (diff)
downloadinkscape-c9d9afe6d19336eccc34a3cf0255872e2f77a70e.tar.gz
inkscape-c9d9afe6d19336eccc34a3cf0255872e2f77a70e.zip
make sure only positive dialog positions are read from preferences, fixes #1290647
(bzr r180)
Diffstat (limited to 'src/dialogs/export.cpp')
-rw-r--r--src/dialogs/export.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dialogs/export.cpp b/src/dialogs/export.cpp
index 6cd108412..54df64782 100644
--- a/src/dialogs/export.cpp
+++ b/src/dialogs/export.cpp
@@ -348,6 +348,9 @@ sp_export_dialog (void)
h = prefs_get_int_attribute (prefs_path, "h", 0);
}
+ if (x<0) x=0;
+ if (y<0) y=0;
+
if (x != 0 || y != 0) {
gtk_window_move ((GtkWindow *) dlg, x, y);
} else {