diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2010-07-22 16:51:04 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2010-07-22 16:51:04 +0400 |
commit | 3d22402720304969d106c191a80cef09617417a9 (patch) | |
tree | 91d920329f12adbd076307449e8df2caa1d38f3c /source | |
parent | da04afe78eac85b837da85b2bb6a26c08face44d (diff) |
Fix #22940: material rename crash, delete selection in a text button
was not working correct.
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 c8eefac43f9..54deac5d060 100644 --- a/source/blender/editors/interface/interface_handlers.c +++ b/source/blender/editors/interface/interface_handlers.c @@ -1155,7 +1155,7 @@ static int ui_textedit_delete_selection(uiBut *but, uiHandleButtonData *data) int len= strlen(str); int change= 0; if(but->selsta != but->selend && len) { - memmove( str+but->selsta, str+but->selend, len+1 ); + memmove( str+but->selsta, str+but->selend, len-but->selsta+1 ); change= 1; } |