Changeset 196

Show
Ignore:
Timestamp:
04/25/08 15:51:27 (9 months ago)
Author:
tal
Message:
Bug fixes.
Files:

Legend:

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

    r186 r196  
    127127    def setGlyphs_(self, glyphs): 
    128128        currentSelection = [self._glyphs[index] for index in self._selection] 
    129         newSelection = [glyphs.index(glyph) for glyph in currentSelection if glyph in glyphs] 
     129        newSelection = set([glyphs.index(glyph) for glyph in currentSelection if glyph in glyphs]) 
    130130        self._selection = newSelection 
    131131        self._unsubscribeFromGlyphs() 
     
    147147 
    148148    def recalculateFrame(self): 
    149         width, height = self.superview().frame().size 
     149        superview = self.superview() 
     150        if superview is None: 
     151            return 
     152        width, height = superview.frame().size 
    150153        if width == 0 or height == 0: 
    151154            return