Skip to content

Commit

Permalink
Tooltips: Fix unassigned strip_edges() call on text
Browse files Browse the repository at this point in the history
Fixes godotengine#43940, was a regression from godotengine#43280.

(cherry picked from commit a4af940)
  • Loading branch information
akien-mga committed Jan 5, 2021
1 parent c588ba0 commit 08ecc9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scene/main/viewport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1590,7 +1590,7 @@ void Viewport::_gui_show_tooltip() {
gui.tooltip_control,
gui.tooltip_control->get_global_transform().xform_inv(gui.tooltip_pos),
&tooltip_owner);
tooltip_text.strip_edges();
tooltip_text = tooltip_text.strip_edges();
if (tooltip_text.empty()) {
return; // Nothing to show.
}
Expand Down

0 comments on commit 08ecc9e

Please sign in to comment.