mirror of https://codeberg.org/nsxiv/nsxiv
fix crash when zooming out on small images (#178)
When rendering images, destination image width and height may become zero due to float-to-int conversion after zoom calculation, later crashing when creating an image using those dimensions. This sets a minimum of 1 to both variables. Closes #82pull/181/head
parent
3bc7082f4e
commit
127abbea77
Loading…
Reference in New Issue