mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Improved code regarding extraction curve creation
This commit is contained in:
parent
1148c1167c
commit
4e25673937
@ -122,12 +122,12 @@ RimWellLogExtractionCurve* RicNewWellLogCurveExtractionFeature::addCurve(RimWell
|
||||
size_t curveIndex = plotTrack->curveCount();
|
||||
|
||||
RimWellLogExtractionCurve* curve = new RimWellLogExtractionCurve();
|
||||
plotTrack->addCurve(curve);
|
||||
|
||||
cvf::Color3f curveColor = RicWellLogPlotCurveFeatureImpl::curveColorFromIndex(curveIndex);
|
||||
curve->setColor(curveColor);
|
||||
curve->setWellPath(wellPath);
|
||||
curve->setPropertiesFromView(view);
|
||||
plotTrack->addCurve(curve);
|
||||
|
||||
plotTrack->updateConnectedEditors();
|
||||
RiuMainWindow::instance()->setCurrentObjectInTreeView(curve);
|
||||
|
Loading…
Reference in New Issue
Block a user