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;
|
||||
|
||||
// Does 'node' contain filename information at all?
|
||||
if (
|
||||
bool containsFilename = (
|
||||
// Any bitmaps:
|
||||
(node->GetName() == _T("bitmap")) ||
|
||||
// URLs in wxHtmlWindow:
|
||||
@@ -267,13 +267,14 @@ void XmlResApp::FindFilesInXML(wxXmlNode *node, wxArrayString& flist, const wxSt
|
||||
(node->GetName() == _T("focus") ||
|
||||
node->GetName() == _T("disabled") ||
|
||||
node->GetName() == _T("selected")))
|
||||
)
|
||||
{
|
||||
);
|
||||
|
||||
wxXmlNode *n = node->GetChildren();
|
||||
while (n)
|
||||
{
|
||||
if (n->GetType() == wxXML_TEXT_NODE ||
|
||||
n->GetType() == wxXML_CDATA_SECTION_NODE)
|
||||
if (containsFilename &&
|
||||
(n->GetType() == wxXML_TEXT_NODE ||
|
||||
n->GetType() == wxXML_CDATA_SECTION_NODE))
|
||||
{
|
||||
wxString fullname;
|
||||
if (wxIsAbsolutePath(n->GetContent()) || inputPath == "")
|
||||
@@ -300,7 +301,6 @@ void XmlResApp::FindFilesInXML(wxXmlNode *node, wxArrayString& flist, const wxSt
|
||||
|
||||
n = n->GetNext();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@@ -256,7 +256,7 @@ void XmlResApp::FindFilesInXML(wxXmlNode *node, wxArrayString& flist, const wxSt
|
||||
if (node->GetType() != wxXML_ELEMENT_NODE) return;
|
||||
|
||||
// Does 'node' contain filename information at all?
|
||||
if (
|
||||
bool containsFilename = (
|
||||
// Any bitmaps:
|
||||
(node->GetName() == _T("bitmap")) ||
|
||||
// URLs in wxHtmlWindow:
|
||||
@@ -267,13 +267,14 @@ void XmlResApp::FindFilesInXML(wxXmlNode *node, wxArrayString& flist, const wxSt
|
||||
(node->GetName() == _T("focus") ||
|
||||
node->GetName() == _T("disabled") ||
|
||||
node->GetName() == _T("selected")))
|
||||
)
|
||||
{
|
||||
);
|
||||
|
||||
wxXmlNode *n = node->GetChildren();
|
||||
while (n)
|
||||
{
|
||||
if (n->GetType() == wxXML_TEXT_NODE ||
|
||||
n->GetType() == wxXML_CDATA_SECTION_NODE)
|
||||
if (containsFilename &&
|
||||
(n->GetType() == wxXML_TEXT_NODE ||
|
||||
n->GetType() == wxXML_CDATA_SECTION_NODE))
|
||||
{
|
||||
wxString fullname;
|
||||
if (wxIsAbsolutePath(n->GetContent()) || inputPath == "")
|
||||
@@ -300,7 +301,6 @@ void XmlResApp::FindFilesInXML(wxXmlNode *node, wxArrayString& flist, const wxSt
|
||||
|
||||
n = n->GetNext();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user