From 898c669b978fcebec5a6882c456d302d481f9513 Mon Sep 17 00:00:00 2001 From: Sebastien Braun Date: Tue, 5 Oct 2010 15:32:40 +0200 Subject: Bug fix: If there is no VNC thread, do not attempt to rescale mouse position. --- src/gui/frame.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gui/frame.cpp') diff --git a/src/gui/frame.cpp b/src/gui/frame.cpp index ccc49cb..1b80c3d 100644 --- a/src/gui/frame.cpp +++ b/src/gui/frame.cpp @@ -468,6 +468,9 @@ void Frame::mouseMoveEvent(QMouseEvent* event) QPoint Frame::rescalePosition(QPointF guipos) { + if(!_clientVNCThread) + return QPoint(); + QSize s = size(); QSize t = _clientVNCThread->getSize(); qreal px, py; -- cgit v1.2.3-55-g7522