diff options
-rw-r--r-- | source/blender/editors/interface/interface_template_search_menu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_template_search_menu.c b/source/blender/editors/interface/interface_template_search_menu.c index c256923e7fd..077f7d98eaa 100644 --- a/source/blender/editors/interface/interface_template_search_menu.c +++ b/source/blender/editors/interface/interface_template_search_menu.c @@ -406,7 +406,7 @@ static struct MenuSearch_Data *menu_items_from_ui_create( } if (wm_contexts[space_type_ui_index].space_type_ui_index != -1) { - ScrArea *area_best = wm_contexts[area->spacetype].area; + ScrArea *area_best = wm_contexts[space_type_ui_index].area; const uint value_best = (uint)area_best->winx * (uint)area_best->winy; const uint value_test = (uint)area->winx * (uint)area->winy; if (value_best > value_test) { |