]> git.saurik.com Git - wxWidgets.git/blobdiff - src/richtext/richtexthtml.cpp
move 8 copies of the same function to common code
[wxWidgets.git] / 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();