fix how some display values are shown, fixes #4953

(cherry picked from commit 1555608276)
This commit is contained in:
Juan Linietsky 2016-06-11 22:16:40 -03:00 committed by Rémi Verschelde
parent cb37d1bb91
commit 2212cc827c
1 changed files with 2 additions and 1 deletions

View File

@ -1146,7 +1146,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)