Fixed reading of image type
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53991 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user