CImageInfo: fix missing license text for missing translations

This commit is contained in:
2015-04-14 10:25:29 +02:00
committed by Jacek Jendrzej
parent ca34388616
commit f2a786bf6b

View File

@@ -341,6 +341,13 @@ string CImageInfo::getLicenseText()
CComponentsText txt;
string res = txt.getTextFromFile(file);
//assign default text, if language file is not available
if(res.empty()){
file = LICENSEDIR;
file += "english.license";
res = txt.getTextFromFile(file);
}
return res;
}