summaryrefslogtreecommitdiffstats
path: root/src/dialogs/export.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/dialogs/export.cpp')
-rw-r--r--src/dialogs/export.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dialogs/export.cpp b/src/dialogs/export.cpp
index 42a084dde..6cd108412 100644
--- a/src/dialogs/export.cpp
+++ b/src/dialogs/export.cpp
@@ -147,6 +147,9 @@ sp_export_dialog_delete ( GtkObject *object, GdkEvent *event, gpointer data )
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);