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:
Julian Smart
2012-10-10 15:45:08 +00:00
parent 4d4e7a8a73
commit 4aa079bf56

View File

@@ -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();
}