FIXED: IMAGE and STRING meter were not compatible with a new value-reading method of r330.

This commit is contained in:
spx 2010-02-09 06:53:34 +00:00
parent df3717a51b
commit 506b6b84f3
2 changed files with 3 additions and 3 deletions

View File

@ -220,11 +220,11 @@ void CMeterImage::ReadConfig(const WCHAR* section)
m_PreserveAspectRatio = 0!=parser.ReadInt(section, L"PreserveAspectRatio", 0); m_PreserveAspectRatio = 0!=parser.ReadInt(section, L"PreserveAspectRatio", 0);
if (-1 != parser.ReadInt(section, L"W", -1)) if (-1 != (int)parser.ReadFormula(section, L"W", -1))
{ {
m_WidthDefined = true; m_WidthDefined = true;
} }
if (-1 != parser.ReadInt(section, L"H", -1)) if (-1 != (int)parser.ReadFormula(section, L"H", -1))
{ {
m_HeightDefined = true; m_HeightDefined = true;
} }

View File

@ -343,7 +343,7 @@ void CMeterString::ReadConfig(const WCHAR* section)
throw CError(std::wstring(L"No such StringEffect: ") + effect, __LINE__, __FILE__); throw CError(std::wstring(L"No such StringEffect: ") + effect, __LINE__, __FILE__);
} }
if (-1 != parser.ReadInt(section, L"W", -1) && -1 != parser.ReadInt(section, L"H", -1)) if (-1 != (int)parser.ReadFormula(section, L"W", -1) && -1 != (int)parser.ReadFormula(section, L"H", -1))
{ {
m_DimensionsDefined = true; m_DimensionsDefined = true;
} }