Corrected a clearing bug
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42559 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2420,6 +2420,8 @@ void wxRichTextParagraphLayoutBox::Reset()
|
||||
Clear();
|
||||
|
||||
AddParagraph(wxEmptyString);
|
||||
|
||||
Invalidate(wxRICHTEXT_ALL);
|
||||
}
|
||||
|
||||
/// Invalidate the buffer. With no argument, invalidates whole buffer.
|
||||
@@ -4545,19 +4547,12 @@ wxRichTextBuffer::~wxRichTextBuffer()
|
||||
ClearEventHandlers();
|
||||
}
|
||||
|
||||
void wxRichTextBuffer::Clear()
|
||||
void wxRichTextBuffer::ResetAndClearCommands()
|
||||
{
|
||||
DeleteChildren();
|
||||
Reset();
|
||||
|
||||
GetCommandProcessor()->ClearCommands();
|
||||
Modify(false);
|
||||
Invalidate(wxRICHTEXT_ALL);
|
||||
}
|
||||
|
||||
void wxRichTextBuffer::Reset()
|
||||
{
|
||||
DeleteChildren();
|
||||
AddParagraph(wxEmptyString);
|
||||
GetCommandProcessor()->ClearCommands();
|
||||
Modify(false);
|
||||
Invalidate(wxRICHTEXT_ALL);
|
||||
}
|
||||
|
Reference in New Issue
Block a user