diff options
| author | Ralf Stephan <ralf@ark.in-berlin.de> | 2006-02-24 18:33:07 +0000 |
|---|---|---|
| committer | rwst <rwst@users.sourceforge.net> | 2006-02-24 18:33:07 +0000 |
| commit | c9d9afe6d19336eccc34a3cf0255872e2f77a70e (patch) | |
| tree | 8c0f0b5cac6a906beac775f101584799f4fdd74f /src/dialogs/xml-tree.cpp | |
| parent | make sure positive xy widget pos is written (diff) | |
| download | inkscape-c9d9afe6d19336eccc34a3cf0255872e2f77a70e.tar.gz inkscape-c9d9afe6d19336eccc34a3cf0255872e2f77a70e.zip | |
make sure only positive dialog positions are read from preferences, fixes #1290647
(bzr r180)
Diffstat (limited to 'src/dialogs/xml-tree.cpp')
| -rw-r--r-- | src/dialogs/xml-tree.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/dialogs/xml-tree.cpp b/src/dialogs/xml-tree.cpp index 60845b6bb..44426d921 100644 --- a/src/dialogs/xml-tree.cpp +++ b/src/dialogs/xml-tree.cpp @@ -217,6 +217,10 @@ void sp_xml_tree_dialog() w = prefs_get_int_attribute(prefs_path, "w", 0); h = prefs_get_int_attribute(prefs_path, "h", 0); } + + if (x<0) x=0; + if (y<0) y=0; + if (x != 0 || y != 0) { gtk_window_move((GtkWindow *) dlg, x, y); } else { |
