Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2014-09-17 03:54:33 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-09-17 03:54:33 +0400
commit771bad9c6abaad4b742935e5d55067f281287650 (patch)
treef5325241d866890ae7a155eb112019090dfbf05a /source/blender/editors/interface/interface_handlers.c
parent3cdfea119d93ea3d1ec5096cb7d218c7ae4991d5 (diff)
parentf0f398dcf3101079f4965185eb82c23c54fc6923 (diff)
Merge branch 'master' into soc-2014-viewport_context
Diffstat (limited to 'source/blender/editors/interface/interface_handlers.c')
-rw-r--r--source/blender/editors/interface/interface_handlers.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_handlers.c b/source/blender/editors/interface/interface_handlers.c
index 05305e2e5cd..33bb46ced7f 100644
--- a/source/blender/editors/interface/interface_handlers.c
+++ b/source/blender/editors/interface/interface_handlers.c
@@ -1967,7 +1967,7 @@ static int ui_text_position_from_hidden(uiBut *but, int pos)
static int ui_text_position_to_hidden(uiBut *but, int pos)
{
- const char *butstr = butstr = (but->editstr) ? but->editstr : but->drawstr;
+ const char *butstr = (but->editstr) ? but->editstr : but->drawstr;
return BLI_strnlen_utf8(butstr, pos);
}
@@ -2491,6 +2491,9 @@ static void ui_textedit_end(bContext *C, uiBut *but, uiHandleButtonData *data)
(ui_searchbox_find_index(data->searchbox, but->editstr) == -1))
{
data->cancel = true;
+
+ /* ensure menu (popup) too is closed! */
+ data->escapecancel = true;
}
}
@@ -4333,6 +4336,9 @@ static int ui_do_but_COLOR(bContext *C, uiBut *but, uiHandleButtonData *data, co
Palette *palette = but->rnapoin.id.data;
PaletteColor *color = but->rnapoin.data;
palette->active_color = BLI_findindex(&palette->colors, color);
+
+ /* enforce redraw, sometimes state here can already be exit */
+ ED_region_tag_redraw(data->region);
if (!event->ctrl) {
float color[3];