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
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user