[hamster-applet/gnome-2-28] round also selection rectangle coordinates for those magical dissappearance cases



commit ff2a8ea79b62750bd8ece0ab9bf5106cff41f0ee
Author: Toms Bauģis <toms baugis gmail com>
Date:   Fri Nov 20 12:08:51 2009 +0000

    round also selection rectangle coordinates for those magical dissappearance cases

 hamster/edit_activity.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/hamster/edit_activity.py b/hamster/edit_activity.py
index 14383b9..234ebd7 100644
--- a/hamster/edit_activity.py
+++ b/hamster/edit_activity.py
@@ -324,8 +324,8 @@ class Dayline(graphics.Area):
         
         #highlight rectangle
         if self.highlight:
-            self.highlight_start = self.get_pixel(self._minutes_from_start(self.highlight[0]))
-            self.highlight_end = self.get_pixel(self._minutes_from_start(self.highlight[1]))
+            self.highlight_start = round(self.get_pixel(self._minutes_from_start(self.highlight[0])))
+            self.highlight_end = round(self.get_pixel(self._minutes_from_start(self.highlight[1])))
 
         #TODO - make a proper range check here
         if self.highlight_end > 0 and self.highlight_start < self.width:



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