mirror of
https://gitlab.com/smart-pattern/valentina.git
synced 2024-07-01 08:38:15 +02:00
Refactoring.
This commit is contained in:
parent
35c99ddf3c
commit
34ed181558
|
@ -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)
|
||||||
{
|
{
|
||||||
|
@ -2253,7 +2256,6 @@ void VPMainWindow::RotatePiecesToGrainline()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in a new issue