diff --git a/Library/MeterButton.cpp b/Library/MeterButton.cpp index ffdc6575..926277ed 100644 --- a/Library/MeterButton.cpp +++ b/Library/MeterButton.cpp @@ -242,19 +242,16 @@ bool CMeterButton::Draw() /* ** BindMeasure ** -** Overridden method. The Image meters need not to be bound on anything +** Overridden method. The meters need not to be bound on anything ** */ void CMeterButton::BindMeasure(std::list& measures) { - try + // It's ok not to bind meter to anything + if (!m_MeasureName.empty()) { CMeter::BindMeasure(measures); } - catch(CError) - { - // Do nothing (ignore errors) - } } bool CMeterButton::MouseUp(POINT pos, CMeterWindow* window) diff --git a/Library/MeterImage.cpp b/Library/MeterImage.cpp index d7c5abe4..fd04f358 100644 --- a/Library/MeterImage.cpp +++ b/Library/MeterImage.cpp @@ -257,13 +257,10 @@ bool CMeterImage::Draw() */ void CMeterImage::BindMeasure(std::list& measures) { - try + // It's ok not to bind image meter to anything + if (!m_MeasureName.empty()) { CMeter::BindMeasure(measures); } - catch(CError) - { - // Do nothing (ignore errors) - } }