Skip to content

Commit

Permalink
fix #4826 gui1 tooltips part 2
Browse files Browse the repository at this point in the history
  • Loading branch information
gfgtdf committed Apr 1, 2020
1 parent a5437b4 commit fe31bb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/floating_label.hpp
Expand Up @@ -71,7 +71,7 @@ class floating_label

surface create_surface();

bool expired(int time) const { return get_time_alive(time) > lifetime_; }
bool expired(int time) const { return lifetime_ >= 0 && get_time_alive(time) > lifetime_; }

void show(const bool value) { visible_ = value; }

Expand Down

0 comments on commit fe31bb9

Please sign in to comment.