diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-05-06 15:52:10 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-05-06 15:52:10 +0300 |
commit | 0f0f06645f7bb766cbb534afc0c6f21c5d9e8267 (patch) | |
tree | 3b0c2cab8a13e02cabe9e2aff8639f981d0c751f | |
parent | b9bb752e0e852ddc87e42673caf290283137ec04 (diff) |
Fix error in last commit
-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) { |