[hamster-applet] kind of broke when fixing, and now fixed



commit b253b1465e242c68f9d858e2ac6dd9423a098003
Author: Toms Bauģis <toms baugis gmail com>
Date:   Tue Jun 16 01:05:25 2009 +0100

    kind of broke when fixing, and now fixed

 hamster/graphics.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/hamster/graphics.py b/hamster/graphics.py
index 78ebc86..9431e7b 100644
--- a/hamster/graphics.py
+++ b/hamster/graphics.py
@@ -48,7 +48,6 @@ class Area(gtk.DrawingArea):
         # use these to mark area where the "real" drawing is going on
         self.graph_x, self.graph_y = 0, 0
         self.graph_width, self.graph_height = None, None 
-        self.x_factor, self.y_factor = None, None
 
     def redraw_canvas(self):
         """Force graph redraw"""
@@ -77,6 +76,7 @@ class Area(gtk.DrawingArea):
                 self.value_boundaries[2] = y_min
             if y_max != None:
                 self.value_boundaries[3] = y_max 
+        self.x_factor, self.y_factor = None, None
         self._get_factors()
 
     def _get_factors(self):



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]