From ebfa079f3fd22b82a077a2cc43b4b131464e112b Mon Sep 17 00:00:00 2001 From: Jinhao Date: Thu, 11 Aug 2016 02:15:19 +0800 Subject: [PATCH] fix bug that text_editor throws an exception when undo a backspace --- source/gui/widgets/skeletons/text_editor.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/gui/widgets/skeletons/text_editor.cpp b/source/gui/widgets/skeletons/text_editor.cpp index 03168ce1..e30248a8 100644 --- a/source/gui/widgets/skeletons/text_editor.cpp +++ b/source/gui/widgets/skeletons/text_editor.cpp @@ -2300,6 +2300,8 @@ namespace nana{ namespace widgets } else { + undo_ptr->set_removed(this->_m_make_select_string()); + undo_ptr->set_selected_text(); points_.caret = _m_erase_select(); undo_ptr->set_caret_pos();