Returning the self.draw.queque_draw in Gzv.remove_fp,
authorLincoln de Sousa <lincoln@minaslivre.org>
Tue, 12 Aug 2008 05:53:35 +0000 (02:53 -0300)
committerLincoln de Sousa <lincoln@minaslivre.org>
Tue, 12 Aug 2008 05:53:35 +0000 (02:53 -0300)
the reall problem was the lack of reset in the coordinates
now they are being correctly reseted in Gzv.finish_drawing

gzv.py

diff --git a/gzv.py b/gzv.py
index 59c04d5..b927dc0 100644 (file)
--- a/gzv.py
+++ b/gzv.py
@@ -266,6 +266,7 @@ class Gzv(GladeLoader):
                 if i.position == int(position):
                     self.balls.remove(i)
             del model[path]
+            self.draw.queue_draw()
 
     def save_fp_list(self, *args):
         assert self.project is not None
@@ -336,7 +337,9 @@ class Gzv(GladeLoader):
         self.model.append([position, ''])
         self.treeview.set_cursor(str(position), self.fpcolumn, True)
 
-        # returning to the standard radius
+        # reseting to the default coordenades
+        self.start_x = -1
+        self.start_y = -1
         self.radius = Ball.DEFAULT_WIDTH
 
 if __name__ == '__main__':