From 0e96e473601d1287cd81bb09534d0d04f32e7b2c 2017-12-11 09:29:13 From: Alexandre Leroux Date: 2017-12-11 09:29:13 Subject: [PATCH] Minor fix By default sets the management mode of the thresholds of a color scale to 'manual', to avoid the recalculation of the thresholds for scalars and vectors --- diff --git a/gui/src/Visualization/AxisRenderingUtils.cpp b/gui/src/Visualization/AxisRenderingUtils.cpp index 4e88ca9..33f47a6 100644 --- a/gui/src/Visualization/AxisRenderingUtils.cpp +++ b/gui/src/Visualization/AxisRenderingUtils.cpp @@ -126,6 +126,7 @@ struct AxisSetteraxis(), valuesUnit, QCPAxis::stLogarithmic); + colorScale.m_AutomaticThreshold = true; } }; diff --git a/gui/src/Visualization/SqpColorScale.cpp b/gui/src/Visualization/SqpColorScale.cpp index 6c36bed..47b91f4 100644 --- a/gui/src/Visualization/SqpColorScale.cpp +++ b/gui/src/Visualization/SqpColorScale.cpp @@ -33,7 +33,7 @@ std::pair SqpColorScale::computeThresholds(const SqpColorScale & SqpColorScale::SqpColorScale(QCustomPlot &plot) : m_Scale{new QCPColorScale{&plot}}, - m_AutomaticThreshold{true}, + m_AutomaticThreshold{false}, m_GradientPreset{DEFAULT_GRADIENT_PRESET} { m_Scale->setGradient(m_GradientPreset);