diff options
author | frosch <frosch@openttd.org> | 2013-06-01 14:33:48 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2013-06-01 14:33:48 +0000 |
commit | ce110eed32eef08e7ce1c35a2c5893698afee73a (patch) | |
tree | 0faa8ca975a1bf93428e6ac711692b7e79e7ec27 /src/graph_gui.cpp | |
parent | f292a87dc499fdcf9ffaeaa6f1cd73fc998b31e3 (diff) | |
download | openttd-ce110eed32eef08e7ce1c35a2c5893698afee73a.tar.xz |
(svn r25313) -Fix: Do not assume '8' to be the broadest digit, but test all of them.
Diffstat (limited to 'src/graph_gui.cpp')
-rw-r--r-- | src/graph_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/graph_gui.cpp b/src/graph_gui.cpp index 8d74ded1f..f63c57127 100644 --- a/src/graph_gui.cpp +++ b/src/graph_gui.cpp @@ -504,7 +504,7 @@ public: } } else { /* Draw the label under the data point rather than on the grid line. */ - SetDParamMaxValue(0, this->x_values_start + this->num_on_x_axis * this->x_values_increment); + SetDParamMaxValue(0, this->x_values_start + this->num_on_x_axis * this->x_values_increment, 0, FS_SMALL); x_label_width = GetStringBoundingBox(STR_GRAPH_Y_LABEL_NUMBER).width; } |