Make an image block beore writing it, if there's no data in the block

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38758 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2006-04-16 18:37:09 +00:00
parent dd5cb4b197
commit d5363f57fb
2 changed files with 5 additions and 1 deletions

View File

@@ -3854,7 +3854,7 @@ bool wxRichTextBuffer::PasteFromClipboard(long position)
wxTextDataObject data;
wxTheClipboard->GetData(data);
wxString text(data.GetText());
text.Replace(_T("\r\n"), _T("\n"));
text.Replace(_T("\r\n"), _T("\n"));
InsertTextWithUndo(position+1, text, GetRichTextCtrl());