istanbul r171 - in trunk: . istanbul/main



Author: zaheerm
Date: Tue Apr 15 12:05:34 2008
New Revision: 171
URL: http://svn.gnome.org/viewvc/istanbul?rev=171&view=rev

Log:
	patch by: Christophe Dehais
	* istanbul/main/area_select.py:
	Return xoordinates in order in get_area().
	Fixes bug #484866



Modified:
   trunk/ChangeLog
   trunk/istanbul/main/area_select.py

Modified: trunk/istanbul/main/area_select.py
==============================================================================
--- trunk/istanbul/main/area_select.py	(original)
+++ trunk/istanbul/main/area_select.py	Tue Apr 15 12:05:34 2008
@@ -38,7 +38,8 @@
         self.show_all()
 
     def get_area(self):
-        return self.x1, self.y1, self.x2, self.y2
+        return min(self.x1, self.x2), min(self.y1, self.y2), \
+            max(self.x1, self.x2), max(self.y1, self.y2)
 
     def realize_cb(self, widget):
         gdkwindow = self.window



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