Fix T67191: Redo fails for 3D text operations

This commit is contained in:
Campbell Barton 2019-07-19 19:19:36 +10:00 committed by Brecht Van Lommel
parent 7f77f5f4a4
commit 8194477c0d
1 changed files with 5 additions and 3 deletions

View File

@ -62,7 +62,7 @@ typedef struct UndoFont {
wchar_t *textbuf;
struct CharInfo *textbufinfo;
int len, pos;
int len, pos, selstart, selend;
#ifdef USE_ARRAY_STORE
struct {
@ -241,10 +241,10 @@ static void undofont_to_editfont(UndoFont *uf, Curve *cu)
memcpy(ef->textbufinfo, uf->textbufinfo, final_size);
ef->pos = uf->pos;
ef->selstart = uf->selstart;
ef->selend = uf->selend;
ef->len = uf->len;
ef->selstart = ef->selend = 0;
#ifdef USE_ARRAY_STORE
uf_arraystore_expand_clear(uf);
#endif
@ -269,6 +269,8 @@ static void *undofont_from_editfont(UndoFont *uf, Curve *cu)
memcpy(uf->textbufinfo, ef->textbufinfo, final_size);
uf->pos = ef->pos;
uf->selstart = ef->selstart;
uf->selend = ef->selend;
uf->len = ef->len;
#ifdef USE_ARRAY_STORE