From a3a464b9cf77dd0b8de82cda23423111be4d72cf Mon Sep 17 00:00:00 2001 From: Brian Ferguson Date: Fri, 16 Aug 2013 12:58:16 -0600 Subject: [PATCH] Fixed resetting of internal bounds in f414b5f --- Library/MeasureCalc.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Library/MeasureCalc.cpp b/Library/MeasureCalc.cpp index a49657de..6870e819 100644 --- a/Library/MeasureCalc.cpp +++ b/Library/MeasureCalc.cpp @@ -90,6 +90,8 @@ void MeasureCalc::ReadOptions(ConfigParser& parser, const WCHAR* section) m_LowBound = parser.ReadInt(section, L"LowBound", DEFAULT_LOWER_BOUND); m_HighBound = parser.ReadInt(section, L"HighBound", DEFAULT_UPPER_BOUND); m_UpdateRandom = parser.ReadBool(section, L"UpdateRandom", false); + + LogNoticeF(this, L"Low=%i High=%i", m_LowBound, m_HighBound); m_UniqueRandom = parser.ReadBool(section, L"UniqueRandom", false); if (!m_UniqueRandom) @@ -111,10 +113,6 @@ void MeasureCalc::ReadOptions(ConfigParser& parser, const WCHAR* section) m_LowBound = DEFAULT_LOWER_BOUND; m_HighBound = DEFAULT_UPPER_BOUND; - - // Change the option as well to avoid reset in ReadOptions(). - parser.SetValue(section, L"LowBound", std::to_wstring(m_LowBound)); - parser.SetValue(section, L"HighBound", std::to_wstring(m_HighBound)); } // Reset the list if the bounds are changed