]> granicus.if.org Git - python/commitdiff
More int() around float arguments.
authorJack Jansen <jack.jansen@cwi.nl>
Wed, 12 Feb 2003 15:39:16 +0000 (15:39 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Wed, 12 Feb 2003 15:39:16 +0000 (15:39 +0000)
Mac/Tools/IDE/PyBrowser.py

index 19ddbef0f3bfc028e681988fea7c74b65558f743..397347ed66972406cdd72ac1592ab1de1e4ac33c 100644 (file)
@@ -91,7 +91,7 @@ def truncString(s, maxwid):
 def drawTextCell(text, cellRect, ascent, theList):
        l, t, r, b = cellRect
        cellwidth = r - l
-       Qd.MoveTo(l + 2, t + ascent)
+       Qd.MoveTo(int(l + 2), int(t + ascent))
        condense, text = truncString(text, cellwidth - 3)
        if condense:
                Qd.TextFace(QuickDraw.condense)