]> git.saurik.com Git - wxWidgets.git/commitdiff
Corrected image saving to HTML
authorJulian Smart <julian@anthemion.co.uk>
Fri, 25 Jan 2008 16:38:39 +0000 (16:38 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Fri, 25 Jan 2008 16:38:39 +0000 (16:38 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51376 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/richtext/richtexthtml.cpp

index c6bdfe9def6f22a210054b5186151d7651c759a2..e958d3f2f10447b9f5e8dbd3ed5f7d1bf8ff6144 100644 (file)
@@ -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();