diff --git a/Library/MeterImage.cpp b/Library/MeterImage.cpp index 0147c349..b144c0ec 100644 --- a/Library/MeterImage.cpp +++ b/Library/MeterImage.cpp @@ -220,11 +220,11 @@ void CMeterImage::ReadConfig(const WCHAR* section) 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; } - if (-1 != parser.ReadInt(section, L"H", -1)) + if (-1 != (int)parser.ReadFormula(section, L"H", -1)) { m_HeightDefined = true; } diff --git a/Library/MeterString.cpp b/Library/MeterString.cpp index ef26bbcf..50080bdd 100644 --- a/Library/MeterString.cpp +++ b/Library/MeterString.cpp @@ -343,7 +343,7 @@ void CMeterString::ReadConfig(const WCHAR* section) 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; }