From: Julian Smart Date: Fri, 25 Jan 2008 16:38:39 +0000 (+0000) Subject: Corrected image saving to HTML X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/020b60117ffcb7c631c15e46e6ecb931ef0c2d72?hp=c433798e64639df7669356b55ae6de110094dcf5 Corrected image saving to HTML git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51376 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/richtext/richtexthtml.cpp b/src/richtext/richtexthtml.cpp index c6bdfe9def..e958d3f2f1 100644 --- a/src/richtext/richtexthtml.cpp +++ b/src/richtext/richtexthtml.cpp @@ -129,7 +129,7 @@ bool wxRichTextHTMLHandler::DoSaveFile(wxRichTextBuffer *buffer, wxOutputStream& } wxRichTextImage* image = wxDynamicCast(obj, wxRichTextImage); - if( image && !image->IsEmpty()) + if( image && (!image->IsEmpty() || image->GetImageBlock().GetData())) WriteImage( image, stream ); node2 = node2->GetNext();