From 7ab9d2358bbd0b61353a1eb15831b3146b7d2c17 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Fri, 6 Jun 2008 15:21:54 +0000 Subject: [PATCH] Fixed reading of image type git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53991 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 67d60fd0cf..71052d2910 100644 --- a/src/richtext/richtextxml.cpp +++ b/src/richtext/richtextxml.cpp @@ -174,7 +174,7 @@ bool wxRichTextXMLHandler::ImportXML(wxRichTextBuffer* buffer, wxXmlNode* node) else if (childName == wxT("image")) { wxBitmapType imageType = wxBITMAP_TYPE_PNG; - wxString value = node->GetAttribute(wxT("imagetype"), wxEmptyString); + wxString value = child->GetAttribute(wxT("imagetype"), wxEmptyString); if (!value.empty()) { int type = wxAtoi(value); -- 2.50.0