This was happening because byt a certain point the canvas size was being calculated to less than 1, which is rounded down to 0 as an int. Fixed by enforcing a minimum size of 1 x 1 px for the canvas and not allowing zooming out beyond whatever percentage where that happens.
This was happening because byt a certain point the canvas size was being calculated to less than 1, which is rounded down to 0 as an int. Fixed by enforcing a minimum size of 1 x 1 px for the canvas and not allowing zooming out beyond whatever percentage where that happens.
https:/ /github. com/PintaProjec t/Pinta/ commit/ 89c3cd20d056e2c 6b1340889c4d9d8 839d6f8d46