[ocrfeeder] Fix mistakenly commented out frame in boxes area



commit c6b249b4b00a5be28dddc5d705c2fc7508c1d921
Author: Joaquim Rocha <me joaquimrocha com>
Date:   Sun Jul 20 20:04:21 2014 +0200

    Fix mistakenly commented out frame in boxes area

 src/ocrfeeder/studio/boxesarea.py |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/ocrfeeder/studio/boxesarea.py b/src/ocrfeeder/studio/boxesarea.py
index 43196f1..785b0da 100644
--- a/src/ocrfeeder/studio/boxesarea.py
+++ b/src/ocrfeeder/studio/boxesarea.py
@@ -90,11 +90,11 @@ class BoxesArea(GooCanvas.Canvas):
         pixbuf = GdkPixbuf.Pixbuf.new_from_file(image_path)
         self.image.set_property('pixbuf', pixbuf)
         self.set_bounds(0, 0, self.image.props.width * 2, self.image.props.height * 1.5)
-        #for line in self.frame:
-        #    line.remove()
-        #self.__createFrame()
-        #for line in self.frame:
-        #    self.get_root_item().add_child(line, 0)
+        for line in self.frame:
+           line.remove()
+        self.__createFrame()
+        for line in self.frame:
+           self.get_root_item().add_child(line, 0)
 
     def __createFrame(self):
         line = GooCanvas.CanvasRect(fill_color = self.IMAGE_FRAME_COLOR, line_width = 0)


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