Code

make sure positive xy widget pos is written
authorrwst <rwst@users.sourceforge.net>
Fri, 24 Feb 2006 18:10:36 +0000 (18:10 +0000)
committerrwst <rwst@users.sourceforge.net>
Fri, 24 Feb 2006 18:10:36 +0000 (18:10 +0000)
src/widgets/gradient-vector.cpp

index ccb36a3ec6bc0798787de7dc020249e5f9727fb8..15c19da0eaec1532b42036f5435f0ded365e1fa3 100644 (file)
@@ -994,6 +994,9 @@ sp_gradient_vector_dialog_delete (GtkWidget *widget, GdkEvent *event, GtkWidget
        gtk_window_get_position ((GtkWindow *) dlg, &x, &y);
        gtk_window_get_size ((GtkWindow *) dlg, &w, &h);
 
+    if (x<0) x=0;
+    if (y<0) y=0;
+
        prefs_set_int_attribute (prefs_path, "x", x);
        prefs_set_int_attribute (prefs_path, "y", y);
        prefs_set_int_attribute (prefs_path, "w", w);