1
0
Fork 0

Fix #13955: Aligned y axis labels to the right

pull/13957/head
John Taylor 2025-04-03 14:35:48 +02:00
parent 35e2e9c83c
commit fb60f6abd8
1 changed files with 1 additions and 1 deletions

View File

@ -431,7 +431,7 @@ protected:
if (rtl) { if (rtl) {
DrawString(r.right + ScaleGUITrad(4), r.right + label_width + ScaleGUITrad(4), y, DrawString(r.right + ScaleGUITrad(4), r.right + label_width + ScaleGUITrad(4), y,
GetString(STR_GRAPH_Y_LABEL, this->format_str_y_axis, y_label), GetString(STR_GRAPH_Y_LABEL, this->format_str_y_axis, y_label),
GRAPH_AXIS_LABEL_COLOUR, SA_LEFT); GRAPH_AXIS_LABEL_COLOUR, SA_RIGHT);
} else { } else {
DrawString(r.left - label_width - ScaleGUITrad(4), r.left - ScaleGUITrad(4), y, DrawString(r.left - label_width - ScaleGUITrad(4), r.left - ScaleGUITrad(4), y,
GetString(STR_GRAPH_Y_LABEL, this->format_str_y_axis, y_label), GetString(STR_GRAPH_Y_LABEL, this->format_str_y_axis, y_label),