- More int() calls around floating point numbers passed where integers are

expected.
- Fixed resizing of multi-column lists, somewhat.
This commit is contained in:
Jack Jansen 2003-02-11 16:26:26 +00:00
parent 82ed25c15a
commit 726b238860
1 changed files with 3 additions and 3 deletions

View File

@ -74,7 +74,7 @@ def adjust(self, oldbounds):
# now *why* doesn't the list manager recalc the cellrect??? # now *why* doesn't the list manager recalc the cellrect???
l, t, r, b = self._list.LRect((0,0)) l, t, r, b = self._list.LRect((0,0))
cellheight = b - t cellheight = b - t
self._list.LCellSize((width, cellheight)) self._list.LCellSize((width/self._cols, cellheight))
# reset visRgn # reset visRgn
self._parentwindow.wid.CalcVis() self._parentwindow.wid.CalcVis()
else: else:
@ -456,10 +456,10 @@ def listDefDraw(self, selected, cellRect, theCell,
line2 = lines[1] line2 = lines[1]
else: else:
line2 = "" line2 = ""
Qd.MoveTo(left + 4, top + ascent) Qd.MoveTo(int(left + 4), int(top + ascent))
Qd.DrawText(line1, 0, len(line1)) Qd.DrawText(line1, 0, len(line1))
if line2: if line2:
Qd.MoveTo(left + 4, top + ascent + linefeed) Qd.MoveTo(int(left + 4), int(top + ascent + linefeed))
Qd.DrawText(line2, 0, len(line2)) Qd.DrawText(line2, 0, len(line2))
Qd.PenPat("\x11\x11\x11\x11\x11\x11\x11\x11") Qd.PenPat("\x11\x11\x11\x11\x11\x11\x11\x11")
bottom = top + theList.cellSize[1] bottom = top + theList.cellSize[1]