}
//----------------------------------------------------------------------------
-void ColorLayerImageViewPanel::onChangeOpacity(wxScrollEvent& event)
+void ColorLayerImageViewPanel::ChangeOpacity()
{
int opacity = _opacity->GetValue();
_colorLayerImageViewManager->onThresholdChangeOpacity(opacity);
RefreshView();
}
+//----------------------------------------------------------------------------
+void ColorLayerImageViewPanel::onChangeOpacity(wxScrollEvent& event)
+{
+ ChangeOpacity();
+// int opacity = _opacity->GetValue();
+// _colorLayerImageViewManager->onThresholdChangeOpacity(opacity);
+// RefreshView();
+}
+
//----------------------------------------------------------------------------
bool ColorLayerImageViewPanel::IsVisible()