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.
  • Loading branch information
akien-mga committed Jan 5, 2021
1 parent 118e4d3 commit a4af940
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 @@ -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.
}
Expand Down

0 comments on commit a4af940

Please sign in to comment.