Skip to content

Commit

Permalink
Broken backwards compatibility was fixed.
Browse files Browse the repository at this point in the history
([Measure] contained in Action in Measure and Meter are not replaced when reading skins. They are replaced only when executing action.)
  • Loading branch information
spx268 committed Oct 1, 2009
1 parent 1ebff32 commit 3afe015
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions Library/Measure.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,13 @@ void CMeasure::ReadConfig(CConfigParser& parser, const WCHAR* section)
// The ifabove/ifbelow define actions that are ran when the value goes above/below the given number.

m_IfAboveValue = parser.ReadFloat(section, L"IfAboveValue", 0.0);
m_IfAboveAction = parser.ReadString(section, L"IfAboveAction", L"");
m_IfAboveAction = parser.ReadString(section, L"IfAboveAction", L"", false);

m_IfBelowValue = parser.ReadFloat(section, L"IfBelowValue", 0.0);
m_IfBelowAction = parser.ReadString(section, L"IfBelowAction", L"");
m_IfBelowAction = parser.ReadString(section, L"IfBelowAction", L"", false);

m_IfEqualValue = parser.ReadFloat(section, L"IfEqualValue", 0.0);
m_IfEqualAction = parser.ReadString(section, L"IfEqualAction", L"");
m_IfEqualAction = parser.ReadString(section, L"IfEqualAction", L"", false);

m_AverageSize = parser.ReadInt(section, L"AverageSize", 0);

Expand Down
2 changes: 1 addition & 1 deletion Library/MeasureNet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ void CMeasureNet::ReadConfig(CConfigParser& parser, const WCHAR* section, NET ne
m_Cumulative = 0!=parser.ReadInt(section, L"Cumulative", 0);

m_TrafficValue = parser.ReadFloat(section, L"TrafficValue", 0.0);
m_TrafficAction = parser.ReadString(section, L"TrafficAction", L"");
m_TrafficAction = parser.ReadString(section, L"TrafficAction", L"", false);

if (maxValue == 0)
{
Expand Down
16 changes: 8 additions & 8 deletions Library/Meter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -264,14 +264,14 @@ void CMeter::ReadConfig(const WCHAR* section)
m_SolidColor2 = parser.ReadColor(section, L"SolidColor2", m_SolidColor);
m_SolidAngle = (Gdiplus::REAL)parser.ReadFloat(section, L"GradientAngle", 0.0);

m_RightMouseDownAction = parser.ReadString(section, L"RightMouseDownAction", L"");
m_LeftMouseDownAction = parser.ReadString(section, L"LeftMouseDownAction", L"");
m_MiddleMouseDownAction = parser.ReadString(section, L"MiddleMouseDownAction", L"");
m_RightMouseUpAction = parser.ReadString(section, L"RightMouseUpAction", L"");
m_LeftMouseUpAction = parser.ReadString(section, L"LeftMouseUpAction", L"");
m_MiddleMouseUpAction = parser.ReadString(section, L"MiddleMouseUpAction", L"");
m_MouseOverAction = parser.ReadString(section, L"MouseOverAction", L"");
m_MouseLeaveAction = parser.ReadString(section, L"MouseLeaveAction", L"");
m_RightMouseDownAction = parser.ReadString(section, L"RightMouseDownAction", L"", false);
m_LeftMouseDownAction = parser.ReadString(section, L"LeftMouseDownAction", L"", false);
m_MiddleMouseDownAction = parser.ReadString(section, L"MiddleMouseDownAction", L"", false);
m_RightMouseUpAction = parser.ReadString(section, L"RightMouseUpAction", L"", false);
m_LeftMouseUpAction = parser.ReadString(section, L"LeftMouseUpAction", L"", false);
m_MiddleMouseUpAction = parser.ReadString(section, L"MiddleMouseUpAction", L"", false);
m_MouseOverAction = parser.ReadString(section, L"MouseOverAction", L"", false);
m_MouseLeaveAction = parser.ReadString(section, L"MouseLeaveAction", L"", false);

m_MouseActionCursor = 0!= parser.ReadInt(section, L"MouseActionCursor", 1);

Expand Down

0 comments on commit 3afe015

Please sign in to comment.