[ocrfeeder] Fix the generation of distinct names for images with the same path



commit c314b32492cd491990ea398b61f72f6dd7273732
Author: Joaquim Rocha <jrocha igalia com>
Date:   Sat Dec 3 13:41:19 2011 +0100

    Fix the generation of distinct names for images with the same path

 src/ocrfeeder/studio/widgetModeler.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/ocrfeeder/studio/widgetModeler.py b/src/ocrfeeder/studio/widgetModeler.py
index f358d02..5847d60 100644
--- a/src/ocrfeeder/studio/widgetModeler.py
+++ b/src/ocrfeeder/studio/widgetModeler.py
@@ -68,7 +68,8 @@ class SourceImagesListStore(gtk.ListStore):
         iter = self.get_iter_root()
         counter = 0
         while iter != None:
-            image_path = self.get_value(iter, 0)
+            page_data = self.get_value(iter, 2)
+            image_path = page_data.image_path
             if image_path == path:
                 counter += 1
             iter = self.iter_next(iter)



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