mirror of
https://gitlab.com/smart-pattern/valentina.git
synced 2024-09-08 01:54:37 +02:00
Fix export of tiled sheet.
This commit is contained in:
parent
b43592e3e9
commit
8c3de72a51
|
@ -2632,7 +2632,11 @@ void VPMainWindow::GeneratePdfTiledFile(const VPSheetPtr &sheet, bool showTilesS
|
|||
|
||||
if (showTilesScheme)
|
||||
{
|
||||
DrawTilesScheme(printer.data(), painter, sheet, firstPage);
|
||||
if (not DrawTilesScheme(printer.data(), painter, sheet, firstPage))
|
||||
{
|
||||
return;
|
||||
}
|
||||
firstPage = false;
|
||||
}
|
||||
|
||||
for(int row=0; row < m_layout->TileFactory()->RowNb(sheet); row++) // for each row of the tiling grid
|
||||
|
@ -3099,7 +3103,12 @@ auto VPMainWindow::PrintLayoutTiledSheetPage(QPrinter *printer, QPainter &painte
|
|||
|
||||
if (page.tilesScheme)
|
||||
{
|
||||
return DrawTilesScheme(printer, &painter, page.sheet, firstPage);
|
||||
if (not DrawTilesScheme(printer, &painter, page.sheet, firstPage))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
firstPage = false;
|
||||
}
|
||||
|
||||
if(not firstPage)
|
||||
|
|
Loading…
Reference in a new issue