Histogram: Fixed crash due to to 4bbc372

This commit is contained in:
Brian 2012-07-23 10:28:58 +03:00 committed by Birunthan Mohanathas
parent 52b6078303
commit 0f1e4a1292

View File

@ -433,7 +433,7 @@ bool CMeterHistogram::Draw(Graphics& graphics)
(m_Measures.size() >= 1 && !m_PrimaryValues) ||
(m_Measures.size() >= 2 && !m_SecondaryValues)) return false;
CMeasure* secondaryMeasure = m_Measures[1];
CMeasure* secondaryMeasure = (m_Measures.size() >= 2) ? m_Measures[1] : NULL;
GraphicsPath primaryPath;
GraphicsPath secondaryPath;