summaryrefslogtreecommitdiffstats
path: root/src/dialogs/find.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/find.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/find.cpp')
-rw-r--r--src/dialogs/find.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/dialogs/find.cpp b/src/dialogs/find.cpp
index c1f1c9974..c76390ccb 100644
--- a/src/dialogs/find.cpp
+++ b/src/dialogs/find.cpp
@@ -652,6 +652,10 @@ sp_find_dialog_old (void)
w = prefs_get_int_attribute (prefs_path, "w", 0);
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 {