mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#836 Fixed missing/wrong zoom update for well log plots when opening project.
Refactored the zoom update method names
This commit is contained in:
@@ -318,12 +318,12 @@ QString RimSummaryCurve::createCurveAutoName()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimSummaryCurve::zoomAllParentPlot()
|
||||
void RimSummaryCurve::updateZoomInParentPlot()
|
||||
{
|
||||
RimSummaryPlot* plot = nullptr;
|
||||
firstAnchestorOrThisOfType(plot);
|
||||
|
||||
plot->zoomAll();
|
||||
plot->updateZoom();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -349,7 +349,7 @@ void RimSummaryCurve::onLoadDataAndUpdate()
|
||||
m_qwtPlotCurve->setSamplesFromDateAndValues(std::vector<QDateTime>(), std::vector<double>());
|
||||
}
|
||||
|
||||
zoomAllParentPlot();
|
||||
updateZoomInParentPlot();
|
||||
|
||||
if (m_parentQwtPlot) m_parentQwtPlot->replot();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user