XFA: table fix

This commit is contained in:
Jakub Melka 2022-01-21 19:50:16 +01:00
parent ed09a98b6c
commit 45437f92e3
1 changed files with 2 additions and 1 deletions

View File

@ -10417,7 +10417,6 @@ void PDFXFALayoutEngine::layoutFlow(LayoutParameters& layoutParameters, bool bre
QSizeF nominalContentSize(xOffset, yOffset);
QSizeF nominalExtentSizeWithoutCaption = nominalContentSize.grownBy(layoutParameters.margins);
QSizeF nominalExtentSize = nominalExtentSizeWithoutCaption.grownBy(captionMargins);
nominalExtentSize = layoutParameters.sizeInfo.adjustNominalExtentSize(nominalExtentSize);
QRectF nominalExtentRegion(QPointF(0, 0), nominalExtentSize);
finalLayout.nominalExtent = nominalExtentRegion;
finalLayout.colSpan = layoutParameters.columnSpan;
@ -10428,6 +10427,8 @@ void PDFXFALayoutEngine::layoutFlow(LayoutParameters& layoutParameters, bool bre
}
addSubformToLayout(layoutParameters);
layoutParameters.tableRows.clear();
layoutParameters.colWidths.clear();
return;
}