Fix export of tiled sheet.

This commit is contained in:
Roman Telezhynskyi 2022-08-17 19:29:32 +03:00
parent b43592e3e9
commit 8c3de72a51

View File

@ -2632,7 +2632,11 @@ void VPMainWindow::GeneratePdfTiledFile(const VPSheetPtr &sheet, bool showTilesS
if (showTilesScheme) 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 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) 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) if(not firstPage)