diff options
author | Juan Linietsky <reduzio@gmail.com> | 2016-06-11 22:16:40 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2016-06-11 22:16:40 -0300 |
commit | 1555608276abda42bd2ced9f949e1afb5bc0a6dd (patch) | |
tree | c7ac1394d11a9aa02d6f5db5403143d43a93bdf0 /scene/gui | |
parent | 482b21a5a4562ac2dd4f5bb2c35b53f4d8b860c7 (diff) |
fix how some display values are shown, fixes #4953
Diffstat (limited to 'scene/gui')
-rw-r--r-- | scene/gui/tree.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scene/gui/tree.cpp b/scene/gui/tree.cpp index 2c39aea08c..08fe847a33 100644 --- a/scene/gui/tree.cpp +++ b/scene/gui/tree.cpp @@ -1186,7 +1186,8 @@ int Tree::draw_item(const Point2i& p_pos,const Point2& p_draw_ofs, const Size2& Ref<Texture> updown = cache.updown; - String valtext = String::num( p_item->cells[i].val, Math::decimals( p_item->cells[i].step ) ); + //String valtext = String::num( p_item->cells[i].val, Math::decimals( p_item->cells[i].step ) ); + String valtext = rtos( p_item->cells[i].val ); font->draw( ci, text_pos, valtext, col, item_rect.size.x-updown->get_width()); if (!p_item->cells[i].editable) |