mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Clean up move code for well log curves.
This commit is contained in:
parent
2e00d9a719
commit
da6360cf98
@ -52,8 +52,6 @@ void RicWellLogPlotTrackFeatureImpl::moveCurvesToWellLogPlotTrack( RimWellLogTra
|
||||
if ( wellLogPlotTrack )
|
||||
{
|
||||
wellLogPlotTrack->removeCurve( curve );
|
||||
wellLogPlotTrack->updateConnectedEditors();
|
||||
wellLogPlotTrack->updateStackedCurveData();
|
||||
srcTracks.insert( wellLogPlotTrack );
|
||||
RimWellLogPlot* plot;
|
||||
wellLogPlotTrack->firstAncestorOrThisOfType( plot );
|
||||
@ -73,15 +71,17 @@ void RicWellLogPlotTrackFeatureImpl::moveCurvesToWellLogPlotTrack( RimWellLogTra
|
||||
destTrack->insertCurve( curves[cIdx], insertionStartIndex + cIdx );
|
||||
}
|
||||
|
||||
for ( std::set<RimWellLogPlot*>::iterator pIt = srcPlots.begin(); pIt != srcPlots.end(); ++pIt )
|
||||
for ( auto track : srcTracks )
|
||||
{
|
||||
( *pIt )->calculateAvailableDepthRange();
|
||||
track->setAutoScaleXEnabled( true );
|
||||
track->updateParentPlotZoom();
|
||||
track->updateConnectedEditors();
|
||||
track->updateStackedCurveData();
|
||||
}
|
||||
|
||||
for ( std::set<RimWellLogTrack*>::iterator tIt = srcTracks.begin(); tIt != srcTracks.end(); ++tIt )
|
||||
for ( auto plot : srcPlots )
|
||||
{
|
||||
( *tIt )->setAutoScaleXEnabled( true );
|
||||
( *tIt )->updateParentPlotZoom();
|
||||
plot->calculateAvailableDepthRange();
|
||||
}
|
||||
|
||||
destTrack->loadDataAndUpdate();
|
||||
|
Loading…
Reference in New Issue
Block a user