Canvas: Do not try to draw on a 0-sized area

This commit is contained in:
Corentin Noël 2024-05-04 22:59:16 +02:00 committed by Danielle Foré
parent 82aa331c77
commit d61501b070

View File

@ -69,7 +69,7 @@ public class Gala.Drawing.Canvas : GLib.Object, Clutter.Content {
}
public void invalidate () {
if (width < 0 || height < 0) {
if (width <= 0 || height <= 0) {
return;
}