From a4af94068a6223b4d0a5f5f8d7921742812bcfb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Tue, 5 Jan 2021 15:14:27 +0100 Subject: [PATCH] Tooltips: Fix unassigned strip_edges() call on text Fixes #43940, was a regression from #43280. --- scene/main/viewport.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp index c3404078db9..4baec0f9954 100644 --- a/scene/main/viewport.cpp +++ b/scene/main/viewport.cpp @@ -1538,7 +1538,7 @@ void Viewport::_gui_show_tooltip() { gui.tooltip_control, gui.tooltip_control->get_global_transform().xform_inv(gui.last_mouse_pos), &tooltip_owner); - tooltip_text.strip_edges(); + tooltip_text = tooltip_text.strip_edges(); if (tooltip_text.is_empty()) { return; // Nothing to show. }