mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-12 08:25:03 -05:00
#3656 Improve display of Y-axis values.
This commit is contained in:
1 parent
9b41685035
commit
97f3cbc18d
1 file changed
+2
-2
+2
-2
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user