From 3b2c5a4b1bb0b59a4f96fceb73f875ac5f7ad05e Mon Sep 17 00:00:00 2001
From: iovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a>
Date: Mon, 18 Jun 2007 16:45:41 +0000
Subject: rmdSelectThumb.py: removed zero size frame that appeared in top-left
 corner when no area was selected( fullscreen mode)

git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@361 f606c939-3180-4ac9-a4b8-4b8779d57d0a
---
 qt-recordmydesktop/src/rmdSelectThumb.py | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/qt-recordmydesktop/src/rmdSelectThumb.py b/qt-recordmydesktop/src/rmdSelectThumb.py
index bfca01d..3da48ec 100644
--- a/qt-recordmydesktop/src/rmdSelectThumb.py
+++ b/qt-recordmydesktop/src/rmdSelectThumb.py
@@ -141,10 +141,11 @@ class QtThumbSelector(QtGui.QLabel):
             self.x1 = event.x()
             self.y1 = event.y()
     def __draw_frame__(self):
-        self.realFrame=rmdFrame(self.area_return[0],
-                                self.area_return[1],
-                                self.area_return[2]-self.area_return[0],
-                                self.area_return[3]-self.area_return[1])
+        if self.area_return[0]!=-1:
+            self.realFrame=rmdFrame(self.area_return[0],
+                                    self.area_return[1],
+                                    self.area_return[2]-self.area_return[0],
+                                    self.area_return[3]-self.area_return[1])
     def closeEvent(self,event):
         self.realFrame.destroy()
         QtGui.QLabel.close(self)
-- 
cgit v1.2.3