From: rwst Date: Fri, 24 Feb 2006 18:10:36 +0000 (+0000) Subject: make sure positive xy widget pos is written X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=77011217dfa4a11a4d6ab00e889b98e3d402f437;p=inkscape.git make sure positive xy widget pos is written --- diff --git a/src/widgets/gradient-vector.cpp b/src/widgets/gradient-vector.cpp index ccb36a3ec..15c19da0e 100644 --- a/src/widgets/gradient-vector.cpp +++ b/src/widgets/gradient-vector.cpp @@ -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);