From 095afe623c514bbcb70f28035232f06c8468f376 Mon Sep 17 00:00:00 2001 From: Roman Tolchenov <roman.tolchenov@stfc.ac.uk> Date: Mon, 10 Feb 2014 11:24:21 +0000 Subject: [PATCH] Re #8775. Relaxed the constraints on the colour map limits. --- .../src/Mantid/InstrumentWidget/InstrumentActor.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Code/Mantid/MantidPlot/src/Mantid/InstrumentWidget/InstrumentActor.cpp b/Code/Mantid/MantidPlot/src/Mantid/InstrumentWidget/InstrumentActor.cpp index 9b5af4b3eb3..e95f0eff2e8 100644 --- a/Code/Mantid/MantidPlot/src/Mantid/InstrumentWidget/InstrumentActor.cpp +++ b/Code/Mantid/MantidPlot/src/Mantid/InstrumentWidget/InstrumentActor.cpp @@ -657,11 +657,7 @@ void InstrumentActor::saveSettings() void InstrumentActor::setMinValue(double vmin) { if (m_autoscaling) return; - if (vmin < m_DataMinValue) - { - vmin = m_DataMinValue; - } - if (vmin > m_DataMaxValue) return; + if (vmin >= m_DataMaxScaleValue) return; m_DataMinScaleValue = vmin; resetColors(); } @@ -669,7 +665,7 @@ void InstrumentActor::setMinValue(double vmin) void InstrumentActor::setMaxValue(double vmax) { if (m_autoscaling) return; - if (vmax < m_DataMinValue) return; + if (vmax <= m_DataMinScaleValue) return; m_DataMaxScaleValue = vmax; resetColors(); } -- GitLab