mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#8994 Plot axis range : Fix incorrect reset of user-defined min max value
This commit is contained in:
parent
cf9f69b620
commit
cbe731d187
@ -700,6 +700,9 @@ void RimSummaryMultiPlot::onLoadDataAndUpdate()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimSummaryMultiPlot::zoomAll()
|
||||
{
|
||||
// Reset zoom to make sure the complete range for min/max is available
|
||||
RimMultiPlot::zoomAll();
|
||||
|
||||
syncAxisRanges();
|
||||
}
|
||||
|
||||
@ -782,14 +785,15 @@ void RimSummaryMultiPlot::checkAndApplyAutoAppearance()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimSummaryMultiPlot::syncAxisRanges()
|
||||
{
|
||||
// Reset zoom to make sure the complete range for min/max is available
|
||||
RimMultiPlot::zoomAll();
|
||||
|
||||
if ( m_axisRangeAggregation() == AxisRangeAggregation::INDIVIDUAL )
|
||||
{
|
||||
return;
|
||||
}
|
||||
else if ( m_axisRangeAggregation() == AxisRangeAggregation::SUB_PLOTS )
|
||||
|
||||
// Reset zoom to make sure the complete range for min/max is available
|
||||
RimMultiPlot::zoomAll();
|
||||
|
||||
if ( m_axisRangeAggregation() == AxisRangeAggregation::SUB_PLOTS )
|
||||
{
|
||||
std::map<RiuPlotAxis, std::pair<double, double>> axisRanges;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user