diff --git a/src/Gui/DAGView/DAGModel.cpp b/src/Gui/DAGView/DAGModel.cpp index b7efe1070..140caf8d4 100644 --- a/src/Gui/DAGView/DAGModel.cpp +++ b/src/Gui/DAGView/DAGModel.cpp @@ -967,7 +967,7 @@ void Model::mousePressEvent(QGraphicsSceneMouseEvent* event) const GraphLinkRecord &record = findRecord(rect, *graphLink); //don't like that I am doing this again here after getRectFromPosition call. - QGraphicsItem *item = itemAt(event->scenePos()); + QGraphicsItem *item = itemAt(event->scenePos(), QTransform()); QGraphicsPixmapItem *pixmapItem = dynamic_cast(item); if (pixmapItem && (pixmapItem == (*theGraph)[record.vertex].visibleIcon.get())) { @@ -1061,7 +1061,7 @@ void Model::contextMenuEvent(QGraphicsSceneContextMenuEvent* event) const GraphLinkRecord &record = findRecord(rect, *graphLink); //don't like that I am doing this again here after getRectFromPosition call. - QGraphicsItem *item = itemAt(event->scenePos()); + QGraphicsItem *item = itemAt(event->scenePos(), QTransform()); QGraphicsPixmapItem *pixmapItem = dynamic_cast(item); if (pixmapItem && (pixmapItem == (*theGraph)[record.vertex].visibleIcon.get())) {