Toggling Cut on Fold check must always trigger the check.

This commit is contained in:
Roman Telezhynskyi 2024-04-08 12:30:49 +03:00
parent 2bdd023afe
commit f681b5ccaf

View File

@ -4873,14 +4873,12 @@ void VPMainWindow::LayoutCutOnFold_toggled(bool checked)
m_layout->LayoutSettings().SetCutOnFold(checked);
LayoutWasSaved(false);
if (checked)
{
VPSheetPtr const sheet = m_layout->GetFocusedSheet();
if (not sheet.isNull())
{
sheet->ValidatePiecesOutOfBound();
}
}
m_graphicsView->RefreshLayout();
}
}