summaryrefslogtreecommitdiff
path: root/qt-recordmydesktop/src/rmdSelectThumb.py
diff options
context:
space:
mode:
Diffstat (limited to 'qt-recordmydesktop/src/rmdSelectThumb.py')
-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