mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Fixed crash when W is negative value: http://rainmeter.net/forum/viewtopic.php?f=14&t=10177
This commit is contained in:
parent
ed2b80fee5
commit
a336c916f6
@ -358,7 +358,9 @@ void CMeter::ReadConfig(CConfigParser& parser, const WCHAR* section)
|
|||||||
}
|
}
|
||||||
|
|
||||||
m_W = (int)parser.ReadFormula(section, L"W", 1.0);
|
m_W = (int)parser.ReadFormula(section, L"W", 1.0);
|
||||||
|
if (m_W < 0) m_W = 0;
|
||||||
m_H = (int)parser.ReadFormula(section, L"H", 1.0);
|
m_H = (int)parser.ReadFormula(section, L"H", 1.0);
|
||||||
|
if (m_H < 0) m_H = 0;
|
||||||
|
|
||||||
if (!m_Initialized)
|
if (!m_Initialized)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user