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.

This commit is contained in:
Roman Telezhynskyi 2021-09-27 10:32:06 +03:00
parent db28a6fe91
commit 72da739e90

View File

@ -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();
}