Applied patch from Armel Asselin that reduces memory required when

pasting text and when sending events.

Comment out some unneeded asserts.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39875 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2006-06-28 19:32:18 +00:00
parent 1215ec07d8
commit 1c930beb60
8 changed files with 14 additions and 28 deletions

View File

@@ -484,7 +484,10 @@ void ScintillaWX::Paste() {
if (gotData) {
wxString text = wxTextBuffer::Translate(data.GetText(),
wxConvertEOLMode(pdoc->eolMode));
data.SetText(wxEmptyString); // free the data object content
wxWX2MBbuf buf = (wxWX2MBbuf)wx2stc(text);
text = wxEmptyString; // free text
int len = strlen(buf);
pdoc->InsertString(currentPos, buf, len);
SetEmptySelection(currentPos + len);