fixed bug that setup variables are sometimes not identified

This commit is contained in:
louis 2015-01-25 12:12:07 +01:00
parent f33d44eda9
commit 61dbed981d
2 changed files with 6 additions and 2 deletions

View File

@ -179,4 +179,6 @@ Version 0.1.6
- introduced globals.xml in skinpath, theme.xml in theme path. theme.xml - introduced globals.xml in skinpath, theme.xml in theme path. theme.xml
adds its vakues and potentially overrides valués from globals.xml adds its vakues and potentially overrides valués from globals.xml
- check icons, menuicons and skinparts additionally directly in skin folder - check icons, menuicons and skinparts additionally directly in skin folder
to allow default images which can be used for all skins. to allow default images which can be used for all skins
- fixed bug that setup variables are sometimes not identified in case two
or more skin names start identically

View File

@ -160,7 +160,9 @@ void cDesignerConfig::SetSkinSetupParameters(void) {
string activeSkin = ""; string activeSkin = "";
bool skinFound = false; bool skinFound = false;
while (GetSkin(activeSkin)) { while (GetSkin(activeSkin)) {
size_t hit = name.find(activeSkin); stringstream checkString;
checkString << activeSkin << ".";
size_t hit = name.find(checkString.str());
if (hit != 0) if (hit != 0)
continue; continue;
skinFound = true; skinFound = true;