Show
Ignore:
Timestamp:
07/05/08 09:43:09 (5 months ago)
Author:
rob
Message:

Fixed #485: font zoom is now saved as a local parameter

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/peppy/fundamental_menu.py

    r1457 r1458  
    173173        Callback function used to set the stc to the correct line. 
    174174        """ 
     175        self.mode.locals.font_zoom = zoom 
    175176        mode.SetZoom(zoom) 
    176177 
     
    182183 
    183184    def action(self, index=-1, multiplier=1): 
    184         self.mode.SetZoom(self.mode.GetZoom() + 1) 
     185        self.mode.locals.font_zoom += 1 
     186        self.mode.SetZoom(self.mode.locals.font_zoom) 
    185187 
    186188class FontZoomDecrease(SelectAction): 
     
    191193 
    192194    def action(self, index=-1, multiplier=1): 
    193         self.mode.SetZoom(self.mode.GetZoom() - 1) 
     195        self.mode.locals.font_zoom -= 1 
     196        self.mode.SetZoom(self.mode.locals.font_zoom) 
    194197 
    195198