#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

@@ -296,7 +296,17 @@ void RimSummaryPlot::loadDataAndUpdate()
this->updateYAxisUnit();
if (m_visibleWindow().size() == 4)
updateZoom();
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RimSummaryPlot::updateZoom()
{
// Todo: introduce autoscale
if(m_visibleWindow().size() == 4)
{
QRectF visibleWindow(m_visibleWindow()[0], m_visibleWindow()[1], m_visibleWindow()[2], m_visibleWindow()[3]);