From e32e5595c02b92bf4ad2cc2f11b33a248dcf0e06 Mon Sep 17 00:00:00 2001 From: zi-mozhuang <2802443161@qq.com> Date: Wed, 12 Aug 2026 15:20:03 +0800 Subject: [PATCH] syn --- sources/print/projectprintwindow.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sources/print/projectprintwindow.cpp b/sources/print/projectprintwindow.cpp index 9282b8afa..4501ddbac 100644 --- a/sources/print/projectprintwindow.cpp +++ b/sources/print/projectprintwindow.cpp @@ -450,12 +450,12 @@ QRect ProjectPrintWindow::diagramRect(Diagram *diagram, const ExportProperties & { auto diagram_rect = diagram->border_and_titleblock.borderAndTitleBlockRect(); if (!option.draw_titleblock) { - auto tbt_rect = diagram->border_and_titleblock.titleBlockRect(); - if (diagram->border_and_titleblock.titleBlockEdge() == Qt::BottomEdge) - diagram_rect.setHeight(diagram_rect.height() - tbt_rect.height()); - else - diagram_rect.setWidth(diagram_rect.width() - tbt_rect.width()); - } + auto titleblock_rect = diagram->border_and_titleblock.titleBlockRect(); + if (diagram->border_and_titleblock.titleBlockEdge() == Qt::BottomEdge) + diagram_rect.setHeight(diagram_rect.height() - titleblock_rect.height()); + else + diagram_rect.setWidth(diagram_rect.width() - titleblock_rect.width()); + } //Adjust the border of diagram to 1px (width of the line) diagram_rect.adjust(0,0,1,1);