Validate pieces each time we activate a sheet.
This commit is contained in:
parent
c5a3375d78
commit
f72d235344
|
@ -327,6 +327,16 @@ void VPLayout::SetFocusedSheet(const VPSheetPtr &focusedSheet)
|
|||
m_focusedSheet = focusedSheet.isNull() ? m_sheets.constFirst() : focusedSheet;
|
||||
}
|
||||
|
||||
if (LayoutSettings().GetWarningSuperpositionOfPieces())
|
||||
{
|
||||
m_focusedSheet->ValidateSuperpositionOfPieces();
|
||||
}
|
||||
|
||||
if (LayoutSettings().GetWarningPieceGapePosition())
|
||||
{
|
||||
m_focusedSheet->ValidatePieceGapePosition();
|
||||
}
|
||||
|
||||
emit ActiveSheetChanged(m_focusedSheet);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user