From 0a8688f9b5902aac295b72d644c4eefeb292807d Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Wed, 11 Sep 2013 17:02:31 +0000 Subject: [PATCH] Fix for when the icon is smaller than the text. From Werner. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@74794 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wx/lib/agw/supertooltip.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wx/lib/agw/supertooltip.py b/wx/lib/agw/supertooltip.py index 3cebe316..48fec3a5 100644 --- a/wx/lib/agw/supertooltip.py +++ b/wx/lib/agw/supertooltip.py @@ -380,7 +380,7 @@ class ToolTipWindowBase(object): self._storeHyperLinkInfo(xText, yText, textWidth, textHeight, hl) toAdd = 0 - if bmpHeight > textHeight: + if bmpHeight > messageHeight: yPos += 2*self._spacing + bmpHeight toAdd = self._spacing else: