diff options
Diffstat (limited to 'src/dialogs/find.cpp')
| -rw-r--r-- | src/dialogs/find.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dialogs/find.cpp b/src/dialogs/find.cpp index 85146f8a3..c1f1c9974 100644 --- a/src/dialogs/find.cpp +++ b/src/dialogs/find.cpp @@ -93,6 +93,9 @@ static gboolean sp_find_dialog_delete(GtkObject *, GdkEvent *, gpointer data) gtk_window_get_position (GTK_WINDOW (dlg), &x, &y); gtk_window_get_size (GTK_WINDOW (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); |
