ubarsc / tuiview

TuiView is a lightweight raster GIS with powerful raster attribute table manipulation abilities
http://tuiview.org/
GNU General Public License v2.0
26 stars 13 forks source link

Zoom Fix #9

Closed bhjolly closed 4 years ago

bhjolly commented 4 years ago

TuiView will occasionally crash on very small zoom selections (and if it doesn't it will zoom in a crazy amount), this happens more often on HiDPI (eg 4K) monitors. This PR addresses that by increasing the minimum selection size to 9 (monitor) px instead of 0. I assume that no-one would intentionally attempt a 3 px x 3 px zoom but I have seen accidental selections of up to 3 px on a 4K screen with a single click (so 9 is potentially a good buffer).