diff options
author | Campbell Barton <ideasman42@gmail.com> | 2006-01-09 18:24:23 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2006-01-09 18:24:23 +0300 |
commit | 7ee9caf523ecb5d398af537282a87a4396ce08e7 (patch) | |
tree | 1f6e0cde4870ee139a135f56e86e02afa21855aa /source/blender/src/interface.c | |
parent | beba2cf17244d5f89d335af871cd5abbb0d0e84d (diff) |
There was a problem with typing over text selections, where you had an object with 21 letter name (19 is the max but 21 is supported, just copy a mesh a few times)
After this click on the object name and start typing, even though the selection makes it that the new string would be overwritten, it dosent let you type in any text.
from
if(len <= but->max) {
to...
if(len-SELWIDTH+1 <= but->max) {
- Tested and works well.
Diffstat (limited to 'source/blender/src/interface.c')
-rw-r--r-- | source/blender/src/interface.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/src/interface.c b/source/blender/src/interface.c index d75fcda001c..baa2b2ffec8 100644 --- a/source/blender/src/interface.c +++ b/source/blender/src/interface.c @@ -1658,7 +1658,8 @@ static int ui_do_but_TEX(uiBut *but) else if(dev==MOUSEY) val= 0; if(ascii) { - if(len <= but->max) { + + if(len-SELWIDTH+1 <= but->max) { /* type over the current selection */ if (SELWIDTH > 0) { |