diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-04-30 06:45:57 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-04-30 06:45:57 +0400 |
commit | cba25a6d900de5a99459d424ffae0092b4110c72 (patch) | |
tree | 53c76ad38db8d331eb9114b4ade644575b55e21f /source | |
parent | f9ed2bf9e91c26c2e51caa332faae3a4b3621d19 (diff) |
fix for an issue raised in [#35154],
the cross icon to clear a field wasn't working within popups.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/interface/interface_handlers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_handlers.c b/source/blender/editors/interface/interface_handlers.c index 95aaa4c81c1..0e4704f3990 100644 --- a/source/blender/editors/interface/interface_handlers.c +++ b/source/blender/editors/interface/interface_handlers.c @@ -2678,7 +2678,7 @@ static int ui_do_but_SEARCH_UNLINK(bContext *C, uiBlock *block, uiBut *but, uiHa { /* unlink icon is on right */ if (ELEM(event->type, LEFTMOUSE, EVT_BUT_OPEN) && event->val == KM_PRESS) { - ARegion *ar = CTX_wm_region(C); + ARegion *ar = data->region; rcti rect; int x = event->x, y = event->y; |