Also check x on invalid rects

This commit is contained in:
Florian Bruhin 2014-04-20 19:43:40 +02:00
parent 293b38a92f
commit 3b894580a2

View File

@ -72,7 +72,8 @@ class HintManager:
def _draw_label(self, elem):
"""Draw a hint label over an element."""
rect = elem.geometry()
if not rect.isValid():
if (not rect.isValid()) and rect.x() == 0:
# Most likely an invisible link
return
css = HintManager.HINT_CSS.format(left=rect.x(), top=rect.y(),
config=config.instance)