summaryrefslogtreecommitdiff
path: root/gtk-recordmydesktop/rmdSelect.py
diff options
context:
space:
mode:
Diffstat (limited to 'gtk-recordmydesktop/rmdSelect.py')
-rw-r--r--gtk-recordmydesktop/rmdSelect.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk-recordmydesktop/rmdSelect.py b/gtk-recordmydesktop/rmdSelect.py
index a88be50..45dfb2f 100644
--- a/gtk-recordmydesktop/rmdSelect.py
+++ b/gtk-recordmydesktop/rmdSelect.py
@@ -102,10 +102,10 @@ class GtkAreaSelector(gtk.Window):
self.x2 = event.x + 1
self.y2 = event.y + 1
# stop
- self.area_return[0]=int(self.x1)
- self.area_return[1]=int(self.y1)
- self.area_return[2]=int(self.x2)
- self.area_return[3]=int(self.y2)
+ self.area_return[0]=min(int(self.x1),int(self.x2))
+ self.area_return[1]=min(int(self.y1),int(self.y2))
+ self.area_return[2]=max(int(self.x1),int(self.x2))
+ self.area_return[3]=max(int(self.y1),int(self.y2))
dialog = gtk.Dialog(title=None, parent=None, flags=0, buttons=None)
label1 = gtk.Label("Recording area for the next session\n\t\t\tis set to:")
dialog.vbox.pack_start(label1, True, True, 0)
© All Rights Reserved