From 618ed4dfb08db85aee17379037b9d2b0466fa897 Mon Sep 17 00:00:00 2001 From: -f Date: Thu, 6 Feb 2014 17:28:17 +0100 Subject: [PATCH] checked variable to avoid segmentation fault --- src/board/UBBoardView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/board/UBBoardView.cpp b/src/board/UBBoardView.cpp index adc66a76..c7d2320c 100644 --- a/src/board/UBBoardView.cpp +++ b/src/board/UBBoardView.cpp @@ -829,7 +829,7 @@ void UBBoardView::handleItemMouseMove(QMouseEvent *event) // a cludge for terminate moving of w3c widgets. // in some cases w3c widgets catches mouse move and doesn't sends that events to web page, // at simple - in google map widget - mouse move events doesn't comes to web page from rectangle of wearch bar on bottom right corner of widget. - if (mWidgetMoved && UBGraphicsW3CWidgetItem::Type == movingItem->type()) + if (movingItem && mWidgetMoved && UBGraphicsW3CWidgetItem::Type == movingItem->type()) movingItem->setPos(posBeforeMove); } }