Using different handling for toggling on and off visibility of well log plot

This commit is contained in:
Pål Hagen committed 2015-09-11 10:58:30 +02:00
1 parent d3909c5d27
commit fa8f6108c7
1 file changed
+7
@@ -129,9 +129,16 @@ void RimWellLogPlot::updateViewerWidget()
void RimWellLogPlot::fieldChangedByUi(const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue)
{
if (changedField == &m_showWindow)
{
if (m_showWindow)
{
loadDataAndUpdate();
}
else
{
updateViewerWidget();
}
}
else if (changedField == &m_minimumVisibleDepth || changedField == &m_maximumVisibleDepth)
{
updateAxisRanges();