[ocrfeeder] Force the DataBox x, y, width and height variables to be int



commit 26564eff6a7e4be46edda809a1ac01ff5e730aff
Author: Joaquim Rocha <jrocha igalia com>
Date:   Thu Jul 8 10:41:50 2010 +0200

    Force the DataBox x, y, width and height variables to be int

 studio/dataHolder.py |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/studio/dataHolder.py b/studio/dataHolder.py
index 6918427..f1e5237 100644
--- a/studio/dataHolder.py
+++ b/studio/dataHolder.py
@@ -72,10 +72,10 @@ class DataBox(gobject.GObject):
 
     def __init__(self, x = 0, y = 0, width = 0, height = 0, image = None, type = TEXT_TYPE, text = None):
         super(DataBox, self).__init__()
-        self.x = x
-        self.y = y
-        self.width = width
-        self.height = height
+        self.x = int(x)
+        self.y = int(y)
+        self.width = int(width)
+        self.height = int(height)
         self.image = image
         self.setType(type)
         self.text_data = TextData()



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