summaryrefslogtreecommitdiff
path: root/qt-recordmydesktop
diff options
context:
space:
mode:
authoriovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a>2007-06-18 16:45:41 +0000
committeriovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a>2007-06-18 16:45:41 +0000
commit3b2c5a4b1bb0b59a4f96fceb73f875ac5f7ad05e (patch)
treeecdf1345dc5e4839c2ea6167428a7f530f0623e9 /qt-recordmydesktop
parent55659477f23a37170d7823ac17b7aed0f5e641c6 (diff)
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
Diffstat (limited to 'qt-recordmydesktop')
-rw-r--r--qt-recordmydesktop/src/rmdSelectThumb.py9
1 files 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)
© All Rights Reserved