From 359ea6088cbe6cdad49919eb1ee669cb73d28da0 Mon Sep 17 00:00:00 2001 From: Theo Hallenius Date: Sat, 31 May 2014 23:50:10 +0200 Subject: [PATCH] Made a uniform distribution of characters in Label::set_percent_visible() --- scene/gui/label.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/scene/gui/label.cpp b/scene/gui/label.cpp index a2f837c3c49..b7918994d88 100644 --- a/scene/gui/label.cpp +++ b/scene/gui/label.cpp @@ -398,12 +398,15 @@ void Label::regenerate_word_cache() { } if (current=='\n') { - insert_newline=true; } else { total_char_cache++; } + if (i