Skip to content

Commit

Permalink
I forgor null check
Browse files Browse the repository at this point in the history
  • Loading branch information
GrimMaple committed Oct 24, 2023
1 parent 1b5f6d0 commit 792b534
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/dlangui/widgets/widget.d
Original file line number Diff line number Diff line change
Expand Up @@ -1413,7 +1413,8 @@ public:
/// request redraw
void invalidate() {
_needDraw = true;
window.update();
if(window !is null)
window.update();
}

/// helper function for implement measure() when widget's content dimensions are known
Expand Down

0 comments on commit 792b534

Please sign in to comment.