fixed stupid bug in my previous check in
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17318 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -256,7 +256,7 @@ void XmlResApp::FindFilesInXML(wxXmlNode *node, wxArrayString& flist, const wxSt
|
|||||||
if (node->GetType() != wxXML_ELEMENT_NODE) return;
|
if (node->GetType() != wxXML_ELEMENT_NODE) return;
|
||||||
|
|
||||||
// Does 'node' contain filename information at all?
|
// Does 'node' contain filename information at all?
|
||||||
if (
|
bool containsFilename = (
|
||||||
// Any bitmaps:
|
// Any bitmaps:
|
||||||
(node->GetName() == _T("bitmap")) ||
|
(node->GetName() == _T("bitmap")) ||
|
||||||
// URLs in wxHtmlWindow:
|
// URLs in wxHtmlWindow:
|
||||||
@@ -267,13 +267,14 @@ void XmlResApp::FindFilesInXML(wxXmlNode *node, wxArrayString& flist, const wxSt
|
|||||||
(node->GetName() == _T("focus") ||
|
(node->GetName() == _T("focus") ||
|
||||||
node->GetName() == _T("disabled") ||
|
node->GetName() == _T("disabled") ||
|
||||||
node->GetName() == _T("selected")))
|
node->GetName() == _T("selected")))
|
||||||
)
|
);
|
||||||
{
|
|
||||||
wxXmlNode *n = node->GetChildren();
|
wxXmlNode *n = node->GetChildren();
|
||||||
while (n)
|
while (n)
|
||||||
{
|
{
|
||||||
if (n->GetType() == wxXML_TEXT_NODE ||
|
if (containsFilename &&
|
||||||
n->GetType() == wxXML_CDATA_SECTION_NODE)
|
(n->GetType() == wxXML_TEXT_NODE ||
|
||||||
|
n->GetType() == wxXML_CDATA_SECTION_NODE))
|
||||||
{
|
{
|
||||||
wxString fullname;
|
wxString fullname;
|
||||||
if (wxIsAbsolutePath(n->GetContent()) || inputPath == "")
|
if (wxIsAbsolutePath(n->GetContent()) || inputPath == "")
|
||||||
@@ -300,7 +301,6 @@ void XmlResApp::FindFilesInXML(wxXmlNode *node, wxArrayString& flist, const wxSt
|
|||||||
|
|
||||||
n = n->GetNext();
|
n = n->GetNext();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -256,7 +256,7 @@ void XmlResApp::FindFilesInXML(wxXmlNode *node, wxArrayString& flist, const wxSt
|
|||||||
if (node->GetType() != wxXML_ELEMENT_NODE) return;
|
if (node->GetType() != wxXML_ELEMENT_NODE) return;
|
||||||
|
|
||||||
// Does 'node' contain filename information at all?
|
// Does 'node' contain filename information at all?
|
||||||
if (
|
bool containsFilename = (
|
||||||
// Any bitmaps:
|
// Any bitmaps:
|
||||||
(node->GetName() == _T("bitmap")) ||
|
(node->GetName() == _T("bitmap")) ||
|
||||||
// URLs in wxHtmlWindow:
|
// URLs in wxHtmlWindow:
|
||||||
@@ -267,13 +267,14 @@ void XmlResApp::FindFilesInXML(wxXmlNode *node, wxArrayString& flist, const wxSt
|
|||||||
(node->GetName() == _T("focus") ||
|
(node->GetName() == _T("focus") ||
|
||||||
node->GetName() == _T("disabled") ||
|
node->GetName() == _T("disabled") ||
|
||||||
node->GetName() == _T("selected")))
|
node->GetName() == _T("selected")))
|
||||||
)
|
);
|
||||||
{
|
|
||||||
wxXmlNode *n = node->GetChildren();
|
wxXmlNode *n = node->GetChildren();
|
||||||
while (n)
|
while (n)
|
||||||
{
|
{
|
||||||
if (n->GetType() == wxXML_TEXT_NODE ||
|
if (containsFilename &&
|
||||||
n->GetType() == wxXML_CDATA_SECTION_NODE)
|
(n->GetType() == wxXML_TEXT_NODE ||
|
||||||
|
n->GetType() == wxXML_CDATA_SECTION_NODE))
|
||||||
{
|
{
|
||||||
wxString fullname;
|
wxString fullname;
|
||||||
if (wxIsAbsolutePath(n->GetContent()) || inputPath == "")
|
if (wxIsAbsolutePath(n->GetContent()) || inputPath == "")
|
||||||
@@ -300,7 +301,6 @@ void XmlResApp::FindFilesInXML(wxXmlNode *node, wxArrayString& flist, const wxSt
|
|||||||
|
|
||||||
n = n->GetNext();
|
n = n->GetNext();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user