Fix bug 51525

This commit is contained in:
Oleg Korshul
2021-08-18 17:41:45 +03:00
parent 6d57eaa978
commit 38f20032f4
2 changed files with 21 additions and 2 deletions

View File

@ -706,8 +706,11 @@ namespace XmlUtils
std::wstring sRes;
if (!GetAttributeIfExist(strAttributeName, sRes))
{
if (!GetTextIfExist(sRes))
sRes = strDefaultValue;
CXmlNode oTemp;
if (GetNode(strAttributeName, oTemp))
sRes = oTemp.GetText();
else
sRes = strDefaultValue;
}
return sRes;
}