diff options
Diffstat (limited to 'src/ui/widget.c')
-rw-r--r-- | src/ui/widget.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/widget.c b/src/ui/widget.c index f187bb82..b5ea3b0f 100644 --- a/src/ui/widget.c +++ b/src/ui/widget.c | |||
@@ -637,7 +637,7 @@ iBool isHover_Widget(const iWidget *d) { | |||
637 | } | 637 | } |
638 | 638 | ||
639 | iBool isSelected_Widget(const iWidget *d) { | 639 | iBool isSelected_Widget(const iWidget *d) { |
640 | return (d->flags & selected_WidgetFlag) != 0; | 640 | return d && (d->flags & selected_WidgetFlag) != 0; |
641 | } | 641 | } |
642 | 642 | ||
643 | iBool equalWidget_Command(const char *cmd, const iWidget *widget, const char *checkCommand) { | 643 | iBool equalWidget_Command(const char *cmd, const iWidget *widget, const char *checkCommand) { |