From 61dbed981d6070c3e642f43b8aaf08309f1e779e Mon Sep 17 00:00:00 2001 From: louis Date: Sun, 25 Jan 2015 12:12:07 +0100 Subject: fixed bug that setup variables are sometimes not identified --- HISTORY | 4 +++- config.c | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/HISTORY b/HISTORY index c0a2e81..7d2e37a 100644 --- a/HISTORY +++ b/HISTORY @@ -179,4 +179,6 @@ Version 0.1.6 - introduced globals.xml in skinpath, theme.xml in theme path. theme.xml adds its vakues and potentially overrides valués from globals.xml - check icons, menuicons and skinparts additionally directly in skin folder - to allow default images which can be used for all skins. \ No newline at end of file + 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 diff --git a/config.c b/config.c index 192f1e4..61ccb55 100644 --- a/config.c +++ b/config.c @@ -160,7 +160,9 @@ void cDesignerConfig::SetSkinSetupParameters(void) { string activeSkin = ""; bool skinFound = false; while (GetSkin(activeSkin)) { - size_t hit = name.find(activeSkin); + stringstream checkString; + checkString << activeSkin << "."; + size_t hit = name.find(checkString.str()); if (hit != 0) continue; skinFound = true; -- cgit v1.2.3