From 487b67136b405c774c4b7371cea4726975bb64cc Mon Sep 17 00:00:00 2001 From: ispyisail Date: Fri, 2 Oct 2026 23:28:58 +1300 Subject: [PATCH] qet-mcp presets: include QPageSize outside the QtPdf guard The preset code uses QPageSize and std::floor whether or not QtPdf was found; it compiled only because other headers bring them in. Co-Authored-By: Claude Opus 5.5 (1M context) --- sources/scripting/qetscriptapi.cpp | 2 +- sources/scripting/qetscriptapi.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sources/scripting/qetscriptapi.cpp b/sources/scripting/qetscriptapi.cpp index 5f0dbfbf6..d8419a757 100644 --- a/sources/scripting/qetscriptapi.cpp +++ b/sources/scripting/qetscriptapi.cpp @@ -52,9 +52,9 @@ #ifdef QET_HAS_QTPDF #include #include +#endif #include #include -#endif #include "../qetgraphicsitem/dynamicelementtextitem.h" #include "../qetgraphicsitem/independenttextitem.h" #include "../qetgraphicsitem/qetshapeitem.h" diff --git a/sources/scripting/qetscriptapi.h b/sources/scripting/qetscriptapi.h index 1aec082d6..180bd0b99 100644 --- a/sources/scripting/qetscriptapi.h +++ b/sources/scripting/qetscriptapi.h @@ -265,7 +265,7 @@ class QetGraphicsTableItem; "height", are the frame and title block together in scene units -- what an export draws -- so a caller can check the result. - A folio's title block @b template is a seventh, separate case: + A folio's title block @b template is a separate case again: Diagram::setTitleBlockTemplate() resolves a name only against QETProject::embeddedTitleBlockTemplatesCollection() -- the same copy-into-the-project step addElement() already does for elements,