Commit 81859e2b authored by Marco Bubke's avatar Marco Bubke
Browse files

Do update the bounging rect for a empty item list too

parent eebc56e9
......@@ -123,18 +123,17 @@ void SelectionTool::mouseMoveEvent(const QList<QGraphicsItem*> &/*itemList*/,
void SelectionTool::hoverMoveEvent(const QList<QGraphicsItem*> &itemList,
QGraphicsSceneMouseEvent * /*event*/)
{
if (itemList.isEmpty())
return;
if (!itemList.isEmpty()) {
ResizeHandleItem* resizeHandle = ResizeHandleItem::fromGraphicsItem(itemList.first());
if (resizeHandle) {
view()->changeToResizeTool();
return;
}
if (topSelectedItemIsMovable(itemList))
view()->changeToMoveTool();
ResizeHandleItem* resizeHandle = ResizeHandleItem::fromGraphicsItem(itemList.first());
if (resizeHandle) {
view()->changeToResizeTool();
return;
}
if (topSelectedItemIsMovable(itemList))
view()->changeToMoveTool();
}
FormEditorItem *topSelectableItem = 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment