Don't include the nul byte when copying to the clipboard
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33316 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -471,7 +471,7 @@ void ScintillaWX::Paste() {
|
||||
void ScintillaWX::CopyToClipboard(const SelectionText& st) {
|
||||
if (wxTheClipboard->Open()) {
|
||||
wxTheClipboard->UsePrimarySelection(false);
|
||||
wxString text = wxTextBuffer::Translate(stc2wx(st.s, st.len));
|
||||
wxString text = wxTextBuffer::Translate(stc2wx(st.s, st.len-1));
|
||||
wxTheClipboard->SetData(new wxTextDataObject(text));
|
||||
wxTheClipboard->Close();
|
||||
}
|
||||
|
@@ -471,7 +471,7 @@ void ScintillaWX::Paste() {
|
||||
void ScintillaWX::CopyToClipboard(const SelectionText& st) {
|
||||
if (wxTheClipboard->Open()) {
|
||||
wxTheClipboard->UsePrimarySelection(false);
|
||||
wxString text = wxTextBuffer::Translate(stc2wx(st.s, st.len));
|
||||
wxString text = wxTextBuffer::Translate(stc2wx(st.s, st.len-1));
|
||||
wxTheClipboard->SetData(new wxTextDataObject(text));
|
||||
wxTheClipboard->Close();
|
||||
}
|
||||
|
Reference in New Issue
Block a user