mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-24 07:16:53 -06:00
(#670) Grid box: Do not use scientific notation on legend
This commit is contained in:
parent
bf5de93113
commit
cbdf446716
@ -570,7 +570,11 @@ void RivGridBoxGenerator::createLegend(EdgeType edge, cvf::Collection<cvf::Part>
|
||||
{
|
||||
legendValue = -domainCoordsTickValues->at(idx);
|
||||
}
|
||||
geo->addText(cvf::String(legendValue), vertices->get(idx*2 + 1) + (0.5f * tickLength) * tickMarkDir);
|
||||
|
||||
cvf::int64 integerValue = static_cast<cvf::int64>(legendValue);
|
||||
cvf::String numberText = cvf::String("%1").arg(integerValue);
|
||||
|
||||
geo->addText(numberText, vertices->get(idx*2 + 1) + (0.5f * tickLength) * tickMarkDir);
|
||||
}
|
||||
|
||||
cvf::ref<cvf::Part> part = new cvf::Part;
|
||||
|
Loading…
Reference in New Issue
Block a user