[Scummvm-cvs-logs] SF.net SVN: scummvm: [27743] scummvm/trunk/gui/theme-config.cpp
sev at users.sourceforge.net
sev at users.sourceforge.net
Wed Jun 27 11:32:43 CEST 2007
Revision: 27743
http://scummvm.svn.sourceforge.net/scummvm/?rev=27743&view=rev
Author: sev
Date: 2007-06-27 02:32:42 -0700 (Wed, 27 Jun 2007)
Log Message:
-----------
Path #1743892: "Fix for segmentation fault in theming code"
Modified Paths:
--------------
scummvm/trunk/gui/theme-config.cpp
Modified: scummvm/trunk/gui/theme-config.cpp
===================================================================
--- scummvm/trunk/gui/theme-config.cpp 2007-06-27 09:30:37 UTC (rev 27742)
+++ scummvm/trunk/gui/theme-config.cpp 2007-06-27 09:32:42 UTC (rev 27743)
@@ -617,16 +617,16 @@
if (iterk->key == "use") {
if (iterk->value == name)
error("Theme section [%s]: cannot use itself", name.c_str());
- if (!config.hasSection(name))
- error("Undefined use of section [%s]", name.c_str());
+ if (!config.hasSection(iterk->value))
+ error("Undefined use of section [%s]", iterk->value.c_str());
processResSection(config, iterk->value, true);
continue;
}
if (iterk->key == "useAsIs") {
if (iterk->value == name)
error("Theme section [%s]: cannot use itself", name.c_str());
- if (!config.hasSection(name))
- error("Undefined use of section [%s]", name.c_str());
+ if (!config.hasSection(iterk->value))
+ error("Undefined use of section [%s]", iterk->value.c_str());
processResSection(config, iterk->value);
continue;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list