summaryrefslogtreecommitdiffstats
path: root/src/widgets/gradient-vector.cpp
diff options
context:
space:
mode:
authorRalf Stephan <ralf@ark.in-berlin.de>2006-02-24 18:10:36 +0000
committerrwst <rwst@users.sourceforge.net>2006-02-24 18:10:36 +0000
commita0a1423e84151843bac6c6957db35e97dc7fce21 (patch)
tree13f019223cf8ce98a0059970b8bd9fca63a0e481 /src/widgets/gradient-vector.cpp
parentmake sure no negative dialog position is written into preferences, (diff)
downloadinkscape-a0a1423e84151843bac6c6957db35e97dc7fce21.tar.gz
inkscape-a0a1423e84151843bac6c6957db35e97dc7fce21.zip
make sure positive xy widget pos is written
(bzr r179)
Diffstat (limited to 'src/widgets/gradient-vector.cpp')
-rw-r--r--src/widgets/gradient-vector.cpp3
1 files changed, 3 insertions, 0 deletions
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);