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,8 +501,19 @@ void RivGridBoxGenerator::createLegend(EdgeType edge, cvf::Collection<cvf::Part>
|
|||||||
vertices->add(point);
|
vertices->add(point);
|
||||||
tickPoint = point + tickLength*tickMarkDir;;
|
tickPoint = point + tickLength*tickMarkDir;;
|
||||||
vertices->add(tickPoint);
|
vertices->add(tickPoint);
|
||||||
indices->add(2 * static_cast<cvf::uint>(i));
|
|
||||||
indices->add(2 * static_cast<cvf::uint>(i) + 1);
|
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
|
// Backbone of legend
|
||||||
|
Loading…
Reference in New Issue
Block a user