mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
[MeterLine] Fixed crash when LineCount not equal to MeasureNameN
http://rainmeter.net/forum/viewtopic.php?f=14&t=14388
This commit is contained in:
parent
bdc079a7a8
commit
6a44aae5fc
@ -215,14 +215,11 @@ bool CMeterLine::Update()
|
|||||||
|
|
||||||
if (maxSize > 0)
|
if (maxSize > 0)
|
||||||
{
|
{
|
||||||
|
int allValuesSize = (int)m_AllValues.size();
|
||||||
int counter = 0;
|
int counter = 0;
|
||||||
std::vector<CMeasure*>::const_iterator i = m_Measures.begin();
|
for (auto i = m_Measures.cbegin(); counter < allValuesSize && i != m_Measures.cend(); ++i, ++counter)
|
||||||
for ( ; i != m_Measures.end(); ++i)
|
|
||||||
{
|
{
|
||||||
double value = (*i)->GetValue();
|
m_AllValues[counter][m_CurrentPos] = (*i)->GetValue();
|
||||||
|
|
||||||
m_AllValues[counter][m_CurrentPos] = value;
|
|
||||||
++counter;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
++m_CurrentPos;
|
++m_CurrentPos;
|
||||||
|
Loading…
Reference in New Issue
Block a user