Changeset 231

Show
Ignore:
Timestamp:
05/31/08 11:34:28 (7 months ago)
Author:
tal
Message:
Fixed a potential zero division error.
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • packages/defconAppKit/trunk/Lib/defconAppKit/views/glyphCellView.py

    r212 r231  
    151151        if self._glyphs: 
    152152            columnCount = int(width / self._cellWidth) 
     153            if columnCount == 0: 
     154                columnCount = 1 
    153155            rowCount = len(self._glyphs) / columnCount 
    154156            if columnCount * rowCount < len(self._glyphs):