diff --git a/utils/wxrc/wxrc.cpp b/utils/wxrc/wxrc.cpp index c07224810e..9d740b4947 100644 --- a/utils/wxrc/wxrc.cpp +++ b/utils/wxrc/wxrc.cpp @@ -441,10 +441,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 && @@ -464,6 +460,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; }