diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2022-09-01 23:49:28 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2022-09-01 23:49:28 +0200 |
commit | 7e3afc3d09d2d961b58717e8273ec8b6b81bbcee (patch) | |
tree | 90f5c03841c1f8fe074350bae836ebfdb9c14e93 /scene/gui/rich_text_label.cpp | |
parent | af2e6aabaa1221a0e0acecff8b83e0abca9bcfc6 (diff) | |
parent | 511134f55ff17330da315f9f3da1702366c31921 (diff) |
Merge pull request #65213 from Mickeon/fix-label-visible-ratio
Diffstat (limited to 'scene/gui/rich_text_label.cpp')
-rw-r--r-- | scene/gui/rich_text_label.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/gui/rich_text_label.cpp b/scene/gui/rich_text_label.cpp index c5fe218a15..9b2e40e050 100644 --- a/scene/gui/rich_text_label.cpp +++ b/scene/gui/rich_text_label.cpp @@ -4945,10 +4945,10 @@ void RichTextLabel::set_visible_ratio(float p_ratio) { if (visible_ratio != p_ratio) { _stop_thread(); - if (visible_ratio >= 1.0) { + if (p_ratio >= 1.0) { visible_characters = -1; visible_ratio = 1.0; - } else if (visible_ratio < 0.0) { + } else if (p_ratio < 0.0) { visible_characters = 0; visible_ratio = 0.0; } else { |