Refactoring.

This commit is contained in:
Roman Telezhynskyi 2024-04-05 18:17:14 +03:00
parent 35c99ddf3c
commit 34ed181558

View file

@ -2233,8 +2233,11 @@ void VPMainWindow::RotatePiecesToGrainline()
QList<VPSheetPtr> const sheets = m_layout->GetAllSheets(); QList<VPSheetPtr> const sheets = m_layout->GetAllSheets();
for (const auto &sheet : sheets) for (const auto &sheet : sheets)
{ {
if (not sheet.isNull()) if (sheet.isNull())
{ {
continue;
}
QList<VPPiecePtr> const pieces = sheet->GetPieces(); QList<VPPiecePtr> const pieces = sheet->GetPieces();
for (const auto &piece : pieces) for (const auto &piece : pieces)
{ {
@ -2254,7 +2257,6 @@ void VPMainWindow::RotatePiecesToGrainline()
} }
} }
} }
}
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
void VPMainWindow::ExportData(const VPExportData &data) void VPMainWindow::ExportData(const VPExportData &data)