Fix T52860: 3D Text crashes w/ Ctrl Backspace

This commit is contained in:
Campbell Barton 2017-09-21 19:14:04 +10:00
parent 50b9d1d019
commit 806bc55a34
Notes: blender-bot 2023-02-14 10:43:47 +01:00
Referenced by issue #53683, 2.79a release
Referenced by issue #52860, Text - Ctrl backspace when text is highlighted then typing crashes blender
1 changed files with 1 additions and 0 deletions

View File

@ -1201,6 +1201,7 @@ static int delete_exec(bContext *C, wmOperator *op)
case DEL_ALL:
ef->len = ef->pos = 0;
ef->textbuf[0] = 0;
BKE_vfont_select_clamp(obedit);
break;
case DEL_SELECTION:
if (!kill_selection(obedit, 0))