#3155 Remove track spacing

This commit is contained in:
Gaute Lindkvist
2018-07-06 09:17:16 +02:00
parent f8a7ba541f
commit 162d82f8b7
6 changed files with 46 additions and 16 deletions

View File

@@ -670,7 +670,10 @@ void RimWellLogTrack::loadDataAndUpdate()
if (wellLogPlot && m_wellLogTrackPlotWidget)
{
m_wellLogTrackPlotWidget->setDepthTitle(wellLogPlot->depthPlotTitle());
if (isFirstVisibleTrackInPlot())
{
m_wellLogTrackPlotWidget->setDepthTitle(wellLogPlot->depthPlotTitle());
}
m_wellLogTrackPlotWidget->setXTitle(m_xAxisTitle);
}
@@ -1166,6 +1169,17 @@ void RimWellLogTrack::updateAxisScaleEngine()
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
bool RimWellLogTrack::isFirstVisibleTrackInPlot() const
{
RimWellLogPlot* plot = nullptr;
firstAncestorOrThisOfTypeAsserted(plot);
size_t ownIndex = plot->trackIndex(this);
return plot->firstVisibleTrackIndex() == ownIndex;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------