From 72da739e90537dfc67f2d3d5db62f94eebc147d2 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Mon, 27 Sep 2021 10:32:06 +0300 Subject: [PATCH] when I click on a piece (left click), there is a background-red for the cutting shape and the seam-shape. With the superposition, we have shade of red. When I open the context-menu on a piece (right click), only the seam-shape is colored in red. I would expect the same behaviour (selection) as with the left click. --- src/app/puzzle/scene/vpgraphicspiece.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/puzzle/scene/vpgraphicspiece.cpp b/src/app/puzzle/scene/vpgraphicspiece.cpp index 9cc74e0f2..46ec8a283 100644 --- a/src/app/puzzle/scene/vpgraphicspiece.cpp +++ b/src/app/puzzle/scene/vpgraphicspiece.cpp @@ -447,7 +447,7 @@ void VPGraphicsPiece::PaintPiece(QPainter *painter) if (painter != nullptr) { painter->save(); - painter->setBrush(isSelected() ? selectionBrush : noBrush); + painter->setBrush(piece->IsSelected() ? selectionBrush : noBrush); painter->drawPath(m_cuttingLine); painter->restore(); }