X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a2beab222f9b0b9467da61b78e125edf955dd6ed..90e15296e9208a869efcc96329597fa3bf263d26:/src/richtext/richtextxml.cpp 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);