Don't write text if it's empty
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72651 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -3244,7 +3244,8 @@ void wxRichTextCtrl::Replace(long from, long to,
|
||||
|
||||
SetDefaultStyle(attr);
|
||||
|
||||
DoWriteText(value, SetValue_SelectionOnly);
|
||||
if (!value.IsEmpty())
|
||||
DoWriteText(value, SetValue_SelectionOnly);
|
||||
|
||||
EndBatchUndo();
|
||||
}
|
||||
|
Reference in New Issue
Block a user