mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-07 04:20:07 +01:00
Fix reference before assignment
Fix issue where textWidth can be referenced before it is actually assigned.
This commit is contained in:
@@ -317,7 +317,7 @@ class ToolTipWindowBase(object):
|
||||
# We got the header text
|
||||
dc.SetFont(headerFont)
|
||||
textWidth, textHeight = dc.GetTextExtent(header)
|
||||
maxWidth = max(bmpWidth+(textWidth+self._spacing*3), maxWidth)
|
||||
maxWidth = max(bmpWidth+(textWidth+self._spacing*3), maxWidth)
|
||||
# Calculate the header height
|
||||
height = max(textHeight, bmpHeight)
|
||||
if header:
|
||||
|
||||
Reference in New Issue
Block a user