mirror of
https://github.com/elementary/gala.git
synced 2024-09-11 15:15:39 +03:00
Canvas: Do not try to draw on a 0-sized area
This commit is contained in:
parent
82aa331c77
commit
d61501b070
@ -69,7 +69,7 @@ public class Gala.Drawing.Canvas : GLib.Object, Clutter.Content {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void invalidate () {
|
public void invalidate () {
|
||||||
if (width < 0 || height < 0) {
|
if (width <= 0 || height <= 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user