I select a piece, then I click on "remove unused" length. If I click directly afterwards on another piece, it makes automatically a multiple selection of the 2 pieces.

Expectation: I makes a single selection of the last clicked piece.
This commit is contained in:
Roman Telezhynskyi 2021-09-27 12:12:56 +03:00
parent 2b966a02df
commit 4fe2e9688d

View File

@ -612,6 +612,8 @@ void VPSheet::RemoveUnusedLength()
{
if (not piece.isNull())
{
piece->SetSelected(false);
emit layout->PieceSelectionChanged(piece);
piecesBoundingRect = piecesBoundingRect.united(piece->MappedDetailBoundingRect());
}
}