Comment 0 for bug 167714

Revision history for this message
Idangazit (idangazit) wrote :

Version: 0.43 (about window says 0.43 nov 23 2005).
Platform: win32 XP SP2 (Haven't checked on other
platforms).
Reproducibility: Always

Steps to trigger the issue:

1. Open affected SVG files.
2. Window opens offscreen and there's no way to make it
come back into view. I can see the window "growing"
right off the screen towards the same off-screen
location every time I open the file.

Poking around in the svg file (I attached one from the
Tango Project which triggers this behavior every single
time), I see a few properties which are the likely
culprits:

inkscape:window-width="1024"
inkscape:window-height="1022"
inkscape:window-x="2291"
inkscape:window-y="78"

Probably, this document was created somewhere on a
machine that sports a Xinerama desktop. In the context
of my monitor (1280x1024), an X-coord of 2291 doesn't
make sense, Inkscape should notice this and position
the window in some sensible default location like the
middle of the screen.

I suggest the following corrected behavior:

1. Upon opening a file, check to see that the window's
coordinates are not within 100 pixels of the screen's edge.

2. If the window is outside of the "safe zone", resize
and display it centered on the screen. Don't make a
change to the file yet -- if users are just browsing to
see, they shouldn't have a "do you want to save" dialog
displayed for just viewing the file.

3. If any other change is made to the file, then also
store the new coordinates. When the user saves the new
window-x/window-y values will be written along with all
of the other changes.
Some additional information:

Thanks for a wonderful app!

Idan Gazit
idan AT fastmail DOT fm.