From 77011217dfa4a11a4d6ab00e889b98e3d402f437 Mon Sep 17 00:00:00 2001 From: rwst Date: Fri, 24 Feb 2006 18:10:36 +0000 Subject: [PATCH] make sure positive xy widget pos is written --- src/widgets/gradient-vector.cpp | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.30.2