mirror of
https://github.com/elementary/gala.git
synced 2024-12-25 10:13:04 +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 () {
|
||||
if (width < 0 || height < 0) {
|
||||
if (width <= 0 || height <= 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user