I forgor null check

This commit is contained in:
Grim 2023-10-24 16:44:07 +03:00
parent 1b5f6d0508
commit 792b534378
1 changed files with 2 additions and 1 deletions

View File

@ -1413,7 +1413,8 @@ public:
/// request redraw /// request redraw
void invalidate() { void invalidate() {
_needDraw = true; _needDraw = true;
window.update(); if(window !is null)
window.update();
} }
/// helper function for implement measure() when widget's content dimensions are known /// helper function for implement measure() when widget's content dimensions are known