mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3155 Remove track spacing
This commit is contained in:
@@ -285,6 +285,21 @@ RimWellLogTrack* RimWellLogPlot::trackByIndex(size_t index)
|
||||
return m_tracks[index];
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
size_t RimWellLogPlot::firstVisibleTrackIndex() const
|
||||
{
|
||||
for (size_t i = 0; i < m_tracks.size(); ++i)
|
||||
{
|
||||
if (m_tracks[i]->isVisible())
|
||||
{
|
||||
return i;
|
||||
}
|
||||
}
|
||||
return std::numeric_limits<size_t>::max();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -866,7 +881,7 @@ void RimWellLogPlot::setTrackLegendsHorizontal(bool horizontal)
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
size_t RimWellLogPlot::trackIndex(RimWellLogTrack* track)
|
||||
size_t RimWellLogPlot::trackIndex(const RimWellLogTrack* track) const
|
||||
{
|
||||
return m_tracks.index(track);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user