Skip to content

Commit

Permalink
fix(ui): Don't draw tooltip box without text (endless-sky#10967)
Browse files Browse the repository at this point in the history
  • Loading branch information
warp-core authored Feb 1, 2025
1 parent 8d93379 commit ef3c578
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/text/WrappedText.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ void WrappedText::Wrap(const char *str)
/// With trailingBreak, include a paragraph break after the text.
int WrappedText::Height(bool trailingBreak) const
{
if(!height)
return 0;
return height + trailingBreak * paragraphBreak;
}

Expand Down

0 comments on commit ef3c578

Please sign in to comment.