/[ascend]/trunk/pygtk/diagnose.py
ViewVC logotype

Diff of /trunk/pygtk/diagnose.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2052 by jpye, Sat Jun 13 08:57:47 2009 UTC revision 2053 by jpye, Mon Jun 22 11:10:15 2009 UTC
# Line 230  class DiagnoseWindow: Line 230  class DiagnoseWindow:
230              self.zoom = MAX_ZOOM_RATIO              self.zoom = MAX_ZOOM_RATIO
231    
232          if self.zoom * self.nc > MAX_ZOOM_SIZE or self.zoom * self.nr > MAX_ZOOM_SIZE:          if self.zoom * self.nc > MAX_ZOOM_SIZE or self.zoom * self.nr > MAX_ZOOM_SIZE:
233              self.browser.reporter.reportNode("image is too big, reducing to MAX_ZOOM_SIZE = %f" % MAX_ZOOM_SIZE);              self.browser.reporter.reportNote("image is too big, reducing to MAX_ZOOM_SIZE = %f" % MAX_ZOOM_SIZE);
234              self.zoom = MAX_ZOOM_SIZE / max(self.nc,self.nr)              self.zoom = MAX_ZOOM_SIZE / max(self.nc,self.nr)
235    
236          #self.browser.reporter.reportNote("Diagnose window: matrix zoom = %f" % self.zoom)          #self.browser.reporter.reportNote("Diagnose window: matrix zoom = %f" % self.zoom)

Legend:
Removed from v.2052  
changed lines
  Added in v.2053

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22