diff options
author | Bogdan B <buzea.bogdan@libreoffice.org> | 2022-11-25 00:16:27 +0100 |
---|---|---|
committer | Hossein <hossein@libreoffice.org> | 2023-06-05 13:53:16 +0200 |
commit | 2f5bffafe4f653aa4ce86f7a27305587680cba58 (patch) | |
tree | 20d6ca4396e421a9f347004d9b97ecdba8f1535e /sw/inc/editsh.hxx | |
parent | e86a0236e69d76769b91f96d71fe852b91c5db6e (diff) |
tdf#152431 Fix line count resets to zero after 65535
GetLineCount was a sal_uInt16 value, that allows only 65535 lines to be
counted. This is changed to sal_Int32 and also the underlying data type
for the lines number is changed from sal_uLong to sal_Int32, but not for
pages number. With this change, the maximum possible line number is now
increased to 2^31-1 = 2,147,483,647.
Change-Id: Ibee2d24e638204133f0ef085564016543f73d351
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143173
Tested-by: Jenkins
Reviewed-by: Hossein <hossein@libreoffice.org>
Diffstat (limited to 'sw/inc/editsh.hxx')
-rw-r--r-- | sw/inc/editsh.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/inc/editsh.hxx b/sw/inc/editsh.hxx index 8711b132c745..41650792e10b 100644 --- a/sw/inc/editsh.hxx +++ b/sw/inc/editsh.hxx @@ -856,7 +856,7 @@ public: bool IsOutlineMovable( SwOutlineNodes::size_type nIdx ) const; bool IsOutlineCopyable( SwOutlineNodes::size_type nIdx ) const; - sal_uInt16 GetLineCount(); + sal_Int32 GetLineCount(); /// Query and set footnote-text/number. Set... to current SSelection! bool GetCurFootnote( SwFormatFootnote* pToFillFootnote = nullptr ); |