Bug? Zoom Selection fails on a vertical zero-width line

Post questions on how to use or achieve an effect in Inkscape.
chrisjj
Posts: 153
Joined: Thu Jan 17, 2013 10:45 am

Bug? Zoom Selection fails on a vertical zero-width line

Postby chrisjj » Wed Feb 13, 2013 5:14 am

Anyone else find "Zoom Selection" fails on a vertical zero-width line?

1 Draw a vertical straight line
2 Set width to zero:
Image
3 Click View, Zoom, Selection

Expected: Zoom so selection fits window
Observer: no effect.

This on Inkscape V0.48, Win 7 Pro 64-bit.

chriswww
Posts: 383
Joined: Fri Nov 19, 2010 3:04 pm

Re: Bug? Zoom Selection fails on a vertical zero-width line

Postby chriswww » Thu Feb 14, 2013 8:22 am

In my book the current behaviour is fine. Otherwise how's inkscape support to calculate the width of screen in proportion to selection when selection is zero width? What else should it do?

chrisjj
Posts: 153
Joined: Thu Jan 17, 2013 10:45 am

Re: Bug? Zoom Selection fails on a vertical zero-width line

Postby chrisjj » Thu Feb 14, 2013 8:42 am

chriswww wrote:how's inkscape support to calculate the width of screen in proportion to selection when selection is zero width?


Inkscape doesn't need to. Since any screen width is sufficient to accommodate zero selection width.

chriswww wrote: What else should it do?


Fit height. Width zero is no good reason to ignore height.

User avatar
druban
Posts: 1917
Joined: Fri Nov 20, 2009 10:48 pm

Re: Bug? Zoom Selection fails on a vertical zero-width line

Postby druban » Thu Feb 14, 2013 1:16 pm

chrisjj wrote:
chriswww wrote:how's inkscape support to calculate the width of screen in proportion to selection when selection is zero width?


Inkscape doesn't need to. Since any screen width is sufficient to accommodate zero selection width.

chriswww wrote: What else should it do?


Fit height. Width zero is no good reason to ignore height.


You make a cogent argument! The best way to take care of this glitch, since it probably affects the very tiniest fraction of users - maybe only one - is to just jump on there and write an exception into the code to switch to height for scaling when objects have zero width.
Your mind is what you think it is.

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: Bug? Zoom Selection fails on a vertical zero-width line

Postby brynn » Fri Feb 15, 2013 4:21 am

I don't know why View menu > Zoom > Selection fails, because the Q key does work as expected! (0.48.4, win7, 64-bit) I guess I could surmise that those 2 ways of zooming work in different ways. But the technical side of Inkscape is mostly a mystery to me.

Q key --
  • with mouse pointer over canvas, press and hold zooms selection to fit canvas -- release key to unzoom
  • with mouse pointer NOT over canvas, 1 tap zooms selection to fit canvas, and holds it zoomed -- to unzoom, move pointer back over canvas and tap key again
  • there may be another couple of tricks with the Q key, but I can't remember them all at the moment

chriswww
Posts: 383
Joined: Fri Nov 19, 2010 3:04 pm

Re: Bug? Zoom Selection fails on a vertical zero-width line

Postby chriswww » Mon Feb 18, 2013 10:20 am

Notwithstanding more elaborate logic, my point was more philosophical than anything else. There are times when certain operations don't make too much sense or otherwise would need to take care of all special cases to accomplish. In this case, you'd also need to scale differently when height is zero. What should inkscape do when the object is zero width and height? Surely these kinds of objects must have limited use and using the zoom in key or menu should suffice?


Return to “Help with using Inkscape”