#836 Fixed missing/wrong zoom update for well log plots when opening project.

Refactored the zoom update method names
This commit is contained in:
Jacob Støren
2016-09-13 09:59:34 +02:00
parent 2ea167337f
commit 9041e4a582
14 changed files with 41 additions and 23 deletions

View File

@@ -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();
}