mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
(#266) Do not show tick marks at start and end of legend
This commit is contained in:
parent
40821a05a6
commit
0907232a7e
@ -501,9 +501,20 @@ void RivGridBoxGenerator::createLegend(EdgeType edge, cvf::Collection<cvf::Part>
|
||||
vertices->add(point);
|
||||
tickPoint = point + tickLength*tickMarkDir;;
|
||||
vertices->add(tickPoint);
|
||||
|
||||
if (i == 0 || i == displayCoordsTickValues->size() - 1)
|
||||
{
|
||||
// Do not show tick mark at ends of legend
|
||||
// Add to list of indices to keep surrounding code unchanged
|
||||
indices->add(2 * static_cast<cvf::uint>(i));
|
||||
indices->add(2 * static_cast<cvf::uint>(i));
|
||||
}
|
||||
else
|
||||
{
|
||||
indices->add(2 * static_cast<cvf::uint>(i));
|
||||
indices->add(2 * static_cast<cvf::uint>(i) + 1);
|
||||
}
|
||||
}
|
||||
|
||||
// Backbone of legend
|
||||
indices->add(0);
|
||||
|
Loading…
Reference in New Issue
Block a user