From 208f7fd110b7de51c6fee59ecef0b8cc5e98d777 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Fri, 6 Jun 2008 15:21:35 +0000 Subject: [PATCH] Fixed reading of image type git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@53990 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/richtext/richtextxml.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/richtext/richtextxml.cpp b/src/richtext/richtextxml.cpp index c5b954b599..2324e3b9f9 100644 --- a/src/richtext/richtextxml.cpp +++ b/src/richtext/richtextxml.cpp @@ -173,7 +173,7 @@ bool wxRichTextXMLHandler::ImportXML(wxRichTextBuffer* buffer, wxXmlNode* node) else if (childName == wxT("image")) { int imageType = wxBITMAP_TYPE_PNG; - wxString value = node->GetPropVal(wxT("imagetype"), wxEmptyString); + wxString value = child->GetPropVal(wxT("imagetype"), wxEmptyString); if (!value.empty()) imageType = wxAtoi(value);