Skip to content

Commit e717e72

Browse files
committed
Fix issue with drawing tables in PDF export
1 parent 3f877e8 commit e717e72

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/cloud

Submodule cloud updated from 9641651 to 2982ef6

src/corelib/business_layer/export/abstract_pdf_exporter.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ void AbstractPdfExporter::Implementation::printPage(int _pageNumber, QPainter* _
174174
const auto table = qobject_cast<QTextTable*>(_document->frameAt(block.position()));
175175
if (table != nullptr) {
176176
blockRect = layout->blockBoundingRect(block);
177+
blockRect.moveLeft(blockRect.left() + block.blockFormat().leftMargin());
177178
//
178179
// ... необходимо также учитывать высоту строки для особых случаев
179180
//

0 commit comments

Comments
 (0)