Fix #93953: Translation double displayed in panel header #105151

Merged
Bastien Montagne merged 1 commits from pioverfour/blender:dp_fix_#93953 into blender-v3.5-release 2023-03-07 14:24:06 +01:00
1 changed files with 2 additions and 1 deletions

View File

@ -5912,7 +5912,8 @@ static bool ui_layout_has_panel_label(const uiLayout *layout, const PanelType *p
LISTBASE_FOREACH (uiItem *, subitem, &layout->items) {
if (subitem->type == ITEM_BUTTON) {
uiButtonItem *bitem = (uiButtonItem *)subitem;
if (!(bitem->but->flag & UI_HIDDEN) && STREQ(bitem->but->str, pt->label)) {
if (!(bitem->but->flag & UI_HIDDEN) &&
STREQ(bitem->but->str, CTX_IFACE_(pt->translation_context, pt->label))) {
return true;
}
}