Removed MeasureName requirement for RoundLines. This removes the need for a "dummy" measure when drawing generic circles.

This commit is contained in:
Brian Ferguson 2012-09-29 13:16:32 -06:00
parent 1613fd76e2
commit 929d8149d0

View File

@ -86,8 +86,14 @@ void CMeterRoundLine::ReadOptions(CConfigParser& parser, const WCHAR* section)
*/
bool CMeterRoundLine::Update()
{
if (CMeter::Update() && !m_Measures.empty())
if (CMeter::Update())
{
if (m_Measures.empty())
{
m_Value = 1.0;
return true;
}
CMeasure* measure = m_Measures[0];
if (m_ValueRemainder > 0)
{