Code

fixing misspelled name in copyright notice
[inkscape.git] / src / dialogs / xml-tree.cpp
index 60845b6bb96f1bb0edd2d6f301013801968df87b..44426d9215a6843afb7c69eab88526d9fec691c4 100644 (file)
@@ -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 {