From c9d9afe6d19336eccc34a3cf0255872e2f77a70e Mon Sep 17 00:00:00 2001 From: Ralf Stephan Date: Fri, 24 Feb 2006 18:33:07 +0000 Subject: make sure only positive dialog positions are read from preferences, fixes #1290647 (bzr r180) --- src/dialogs/object-properties.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/dialogs/object-properties.cpp') diff --git a/src/dialogs/object-properties.cpp b/src/dialogs/object-properties.cpp index f571c75eb..f4a40cd28 100644 --- a/src/dialogs/object-properties.cpp +++ b/src/dialogs/object-properties.cpp @@ -122,6 +122,10 @@ sp_object_properties_dialog (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 -- cgit v1.2.3