mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Don't draw tooltips if no profile is displayed
This fixes ticket 33 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
7cf1960336
commit
0ae16899de
2 changed files with 7 additions and 2 deletions
|
@ -1302,6 +1302,10 @@ static gboolean profile_tooltip (GtkWidget *widget, gint x, gint y,
|
|||
if (tx < 0 || ty < 0)
|
||||
return FALSE;
|
||||
|
||||
/* don't draw a tooltip if nothing is there */
|
||||
if (gc->pi.nr == 0)
|
||||
return FALSE;
|
||||
|
||||
width = drawing_area->width - 2*drawing_area->x;
|
||||
height = drawing_area->height - 2*drawing_area->y;
|
||||
if (width <= 0 || height <= 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue