summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2023-12-31 11:26:04 +0900
committerTomaž Vajngerl <quikee@gmail.com>2024-01-02 01:21:00 +0100
commite71934471442a8bbba7e661d3ebe5f708627c5d6 (patch)
tree55fa029b84834f5d2196d1d0a2b8af04b98c6874 /editeng
parent3461a0027cf5c54ae164462d177ea222ccc76f39 (diff)
editeng: add max paper size constant
Change-Id: Ib51f5c5bbcf68fd156b02e04e8e99408aa97abf1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161481 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/editeng/impedit2.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/editeng/source/editeng/impedit2.cxx b/editeng/source/editeng/impedit2.cxx
index 94f4c6ccfa8f..488873edd266 100644
--- a/editeng/source/editeng/impedit2.cxx
+++ b/editeng/source/editeng/impedit2.cxx
@@ -88,11 +88,13 @@ static sal_uInt16 lcl_CalcExtraSpace( const SvxLineSpacingItem& rLSItem )
return nExtra;
}
+constexpr tools::Long constMaxPaperSize = 0x7FFFFFFF;
+
ImpEditEngine::ImpEditEngine( EditEngine* pEE, SfxItemPool* pItemPool ) :
pSharedVCL(EditDLL::Get().GetSharedVclResources()),
- maPaperSize( 0x7FFFFFFF, 0x7FFFFFFF ),
- maMinAutoPaperSize( 0x0, 0x0 ),
- maMaxAutoPaperSize( 0x7FFFFFFF, 0x7FFFFFFF ),
+ maPaperSize(constMaxPaperSize, constMaxPaperSize),
+ maMinAutoPaperSize(0, 0),
+ maMaxAutoPaperSize(constMaxPaperSize, constMaxPaperSize),
maEditDoc( pItemPool ),
pEditEngine(pEE),
pActiveView(nullptr),