mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-24 23:36:50 -06:00
#3656 Improve display of Y-axis values.
This commit is contained in:
parent
9b41685035
commit
97f3cbc18d
@ -311,7 +311,7 @@ void RivWindowEdgeAxesOverlayItem::addTextToTextDrawer(TextDrawer* textDrawer)
|
||||
double tickValue = m_domainCoordsXValues[i];
|
||||
String valueString;
|
||||
|
||||
valueString = String::number(tickValue);
|
||||
valueString = String::number(tickValue, 'f', 0);
|
||||
auto labelSize = m_font->textExtent(valueString);
|
||||
|
||||
Vec2f pos(textX - labelSize.x()*0.5f, textYBott);
|
||||
@ -335,7 +335,7 @@ void RivWindowEdgeAxesOverlayItem::addTextToTextDrawer(TextDrawer* textDrawer)
|
||||
double tickValue = m_isSwitchingYAxisValueSign ? -m_domainCoordsYValues[i]: m_domainCoordsYValues[i];
|
||||
String valueString;
|
||||
|
||||
valueString = String::number(tickValue);
|
||||
valueString = String::number(tickValue, 'f', 0);
|
||||
auto labelSize = m_font->textExtent(valueString);
|
||||
|
||||
Vec2f pos(textXRight, textY);
|
||||
|
Loading…
Reference in New Issue
Block a user