diff options
Diffstat (limited to 'src/ui/util.c')
-rw-r--r-- | src/ui/util.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ui/util.c b/src/ui/util.c index 3a9bc400..e0b05a44 100644 --- a/src/ui/util.c +++ b/src/ui/util.c | |||
@@ -710,7 +710,8 @@ iWidget *makeMenu_Widget(iWidget *parent, const iMenuItem *items, size_t n) { | |||
710 | menu, | 710 | menu, |
711 | iClob(newKeyMods_LabelWidget(labelText, item->key, item->kmods, item->command)), | 711 | iClob(newKeyMods_LabelWidget(labelText, item->key, item->kmods, item->command)), |
712 | noBackground_WidgetFlag | frameless_WidgetFlag | alignLeft_WidgetFlag | | 712 | noBackground_WidgetFlag | frameless_WidgetFlag | alignLeft_WidgetFlag | |
713 | drawKey_WidgetFlag | (isInfo ? wrapText_WidgetFlag : 0) | itemFlags); | 713 | drawKey_WidgetFlag | itemFlags); |
714 | setWrap_LabelWidget(label, isInfo); | ||
714 | haveIcons |= checkIcon_LabelWidget(label); | 715 | haveIcons |= checkIcon_LabelWidget(label); |
715 | updateSize_LabelWidget(label); /* drawKey was set */ | 716 | updateSize_LabelWidget(label); /* drawKey was set */ |
716 | if (isInfo) { | 717 | if (isInfo) { |
@@ -776,7 +777,7 @@ void openMenuFlags_Widget(iWidget *d, iInt2 windowCoord, iBool postCommands) { | |||
776 | if (isInstance_Object(i.object, &Class_LabelWidget)) { | 777 | if (isInstance_Object(i.object, &Class_LabelWidget)) { |
777 | iLabelWidget *label = i.object; | 778 | iLabelWidget *label = i.object; |
778 | const iBool isCaution = startsWith_String(text_LabelWidget(label), uiTextCaution_ColorEscape); | 779 | const iBool isCaution = startsWith_String(text_LabelWidget(label), uiTextCaution_ColorEscape); |
779 | if (flags_Widget(as_Widget(label)) & wrapText_WidgetFlag) { | 780 | if (isWrapped_LabelWidget(label)) { |
780 | continue; | 781 | continue; |
781 | } | 782 | } |
782 | if (deviceType_App() == desktop_AppDeviceType) { | 783 | if (deviceType_App() == desktop_AppDeviceType) { |