git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38758
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxTextDataObject data;
wxTheClipboard->GetData(data);
wxString text(data.GetText());
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());
InsertTextWithUndo(position+1, text, GetRichTextCtrl());
node2 = node2->GetNext();
}
node2 = node2->GetNext();
}
//OutputParagraphFormatting(currentParaStyle, para->GetAttributes(), stream, false);
}
node = node->GetNext();
//OutputParagraphFormatting(currentParaStyle, para->GetAttributes(), stream, false);
}
node = node->GetNext();
str << GetMimeType(image->GetImageBlock().GetImageType());
str << wxT(";base64,");
str << GetMimeType(image->GetImageBlock().GetImageType());
str << wxT(";base64,");
+ if (image->GetImage().Ok() && !image->GetImageBlock().GetData())
+ image->MakeBlock();
+
wxChar* data = b64enc( image->GetImageBlock().GetData(), image->GetImageBlock().GetDataSize() );
str << data;
wxChar* data = b64enc( image->GetImageBlock().GetData(), image->GetImageBlock().GetDataSize() );
str << data;