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-05-03 03:18:00 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-05-03 03:18:00 +0400
commit0111f3505f0263a35a4196535db26365651d30e7 (patch)
tree5863bf815dbf7e77d194b85a1dbb61ebf1962850 /source/blender/editors/interface/interface.c
parent8d16869d833ea2a2bd548c8f7b767dae582c78f2 (diff)
UI: more changes for large textfields
- no longer set 'but->drawstr' when editing buttons. - clip text and set cursor based on the 'editstr'.
Diffstat (limited to 'source/blender/editors/interface/interface.c')
-rw-r--r--source/blender/editors/interface/interface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface.c b/source/blender/editors/interface/interface.c
index 3da6b5d8e23..19d4e32152f 100644
--- a/source/blender/editors/interface/interface.c
+++ b/source/blender/editors/interface/interface.c
@@ -2697,7 +2697,7 @@ void ui_check_but(uiBut *but)
/* if we are doing text editing, this will override the drawstr */
if (but->editstr)
- BLI_strncpy(but->drawstr, but->editstr, UI_MAX_DRAW_STR);
+ but->drawstr[0] = '\0';
/* text clipping moved to widget drawing code itself */
}