From ab1b28e0b8f957ae0351c748229ba3c0ee4d1302 Mon Sep 17 00:00:00 2001 From: Anatoly Mihalchenko Date: Thu, 5 Apr 2012 14:36:13 +0300 Subject: [PATCH] Fix for background objects --- src/board/UBBoardView.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/board/UBBoardView.cpp b/src/board/UBBoardView.cpp index e1d1f0b2..c15618f0 100644 --- a/src/board/UBBoardView.cpp +++ b/src/board/UBBoardView.cpp @@ -427,7 +427,8 @@ UBBoardView::mousePressEvent (QMouseEvent *event) || movingItem->type() == UBGraphicsPDFItem::Type || movingItem->type() == UBGraphicsPolygonItem::Type || movingItem->type() == UBGraphicsCache::Type - || movingItem->type() == UBGraphicsTriangle::Type) + || movingItem->type() == UBGraphicsTriangle::Type + || movingItem == this->scene()->backgroundObject()) { movingItem = NULL; QGraphicsView::mousePressEvent (event);