Improved code regarding extraction curve creation

This commit is contained in:
Jacob Støren 2015-10-30 21:36:37 +01:00
parent 1148c1167c
commit 4e25673937

View File

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