diff --git a/utils/wxrc/wxrc.cpp b/utils/wxrc/wxrc.cpp index 4cfa9ff753..23d5c5126d 100644 --- a/utils/wxrc/wxrc.cpp +++ b/utils/wxrc/wxrc.cpp @@ -437,10 +437,6 @@ static bool NodeContainsFilename(wxXmlNode *node) if ( name == _T("icon") ) return true; - // URLs in wxHtmlWindow: - if ( name == _T("url") ) - return true; - // wxBitmapButton: wxXmlNode *parent = node->GetParent(); if (parent != NULL && @@ -458,6 +454,15 @@ static bool NodeContainsFilename(wxXmlNode *node) return true; } + // URLs in wxHtmlWindow: + if ( name == _T("url") && + parent != NULL && + parent->GetPropVal(_T("class"), _T("")) == _T("wxHtmlWindow") ) + { + // FIXME: this is wrong for e.g. http:// URLs + return true; + } + return false; }