(#538) Initialize new plot with depth unit

Removed obsolete functions
This commit is contained in:
Magne Sjaastad
2015-12-02 15:07:12 +01:00
parent a85292ecd4
commit ac2a28f139
10 changed files with 53 additions and 69 deletions

View File

@@ -93,6 +93,12 @@ void RicAddWellLogToPlotFeature::onActionTriggered(bool isChecked)
RigWellLogFile* wellLogDataFile = wellLogFile->wellLogFile();
CVF_ASSERT(wellLogDataFile);
if (wlIdx == 0)
{
// Initialize plot with depth unit from the first log file
plot->setDepthUnit(wellLogDataFile->depthUnit());
}
cvf::Color3f curveColor = RicWellLogPlotCurveFeatureImpl::curveColorFromTable();
curve->setColor(curveColor);
curve->setWellPath(wellPath);