Fixed (#583) and improved (#585) and (#592)

Also a renamed typo allign -> align
This commit is contained in:
Jacob Støren
2015-10-28 10:06:35 +01:00
parent 0a45354bd9
commit 44463f3a41
5 changed files with 10 additions and 13 deletions

View File

@@ -252,20 +252,15 @@ void RimWellLogPlotCurve::updateTrackAndPlotFromCurveData()
firstAnchestorOrThisOfType(wellLogPlot);
if (wellLogPlot)
{
bool setDepthRange = !wellLogPlot->hasAvailableDepthRange();
wellLogPlot->calculateAvailableDepthRange();
if (setDepthRange)
{
wellLogPlot->zoomAllDepth();
}
wellLogPlot->zoomAllDepth();
}
RimWellLogPlotTrack* plotTrack;
firstAnchestorOrThisOfType(plotTrack);
if (plotTrack)
{
plotTrack->allignDepthZoomToPlotAndZoomAllX();
plotTrack->alignDepthZoomToPlotAndZoomAllX();
}
}

View File

@@ -124,6 +124,7 @@ void RimWellLogPlotTrack::addCurve(RimWellLogPlotCurve* curve)
void RimWellLogPlotTrack::insertCurve(RimWellLogPlotCurve* curve, size_t index)
{
curves.insert(index, curve);
// Todo: Mark curve data to use either TVD or MD
if (m_wellLogTrackPlotWidget)
{
@@ -274,7 +275,7 @@ void RimWellLogPlotTrack::detachAllCurves()
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RimWellLogPlotTrack::allignDepthZoomToPlotAndZoomAllX()
void RimWellLogPlotTrack::alignDepthZoomToPlotAndZoomAllX()
{
if (m_wellLogTrackPlotWidget)
{

View File

@@ -57,7 +57,7 @@ public:
void loadDataAndUpdate();
bool availableDepthRange(double* minimumDepth, double* maximumDepth);
void allignDepthZoomToPlotAndZoomAllX();
void alignDepthZoomToPlotAndZoomAllX();
RiuWellLogTrackPlot* viewer();