From 2212cc827c3d75a687a5c4d2be0de264eb990d63 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Sat, 11 Jun 2016 22:16:40 -0300 Subject: [PATCH] fix how some display values are shown, fixes #4953 (cherry picked from commit 1555608276abda42bd2ced9f949e1afb5bc0a6dd) --- scene/gui/tree.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scene/gui/tree.cpp b/scene/gui/tree.cpp index 1b3e00afe98..ab41a3a8c5a 100644 --- a/scene/gui/tree.cpp +++ b/scene/gui/tree.cpp @@ -1146,7 +1146,8 @@ int Tree::draw_item(const Point2i& p_pos,const Point2& p_draw_ofs, const Size2& Ref 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)