From c9d9afe6d19336eccc34a3cf0255872e2f77a70e Mon Sep 17 00:00:00 2001 From: Ralf Stephan Date: Fri, 24 Feb 2006 18:33:07 +0000 Subject: make sure only positive dialog positions are read from preferences, fixes #1290647 (bzr r180) --- src/ui/dialog/dialog.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/ui') diff --git a/src/ui/dialog/dialog.cpp b/src/ui/dialog/dialog.cpp index 84e69ee24..238c6d9f7 100644 --- a/src/ui/dialog/dialog.cpp +++ b/src/ui/dialog/dialog.cpp @@ -97,6 +97,9 @@ Dialog::read_geometry() // g_print ("read %d %d %d %d\n", x, y, w, h); + if (x<0) x=0; + if (y<0) y=0; + // If there are stored height and width values for the dialog, // resize the window to match; otherwise we leave it at its default if (w != 0 && h != 0) { -- cgit v1.2.3