diff options
-rw-r--r-- | src/ui/labelwidget.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ui/labelwidget.c b/src/ui/labelwidget.c index 690ad1c3..ea70977c 100644 --- a/src/ui/labelwidget.c +++ b/src/ui/labelwidget.c | |||
@@ -432,6 +432,10 @@ void setIcon_LabelWidget(iLabelWidget *d, iChar icon) { | |||
432 | } | 432 | } |
433 | 433 | ||
434 | iBool checkIcon_LabelWidget(iLabelWidget *d) { | 434 | iBool checkIcon_LabelWidget(iLabelWidget *d) { |
435 | if (isEmpty_String(&d->label)) { | ||
436 | d->icon = 0; | ||
437 | return iFalse; | ||
438 | } | ||
435 | iStringConstIterator iter; | 439 | iStringConstIterator iter; |
436 | init_StringConstIterator(&iter, &d->label); | 440 | init_StringConstIterator(&iter, &d->label); |
437 | const iChar icon = iter.value; | 441 | const iChar icon = iter.value; |