summaryrefslogtreecommitdiff
path: root/sw/inc/editsh.hxx
diff options
context:
space:
mode:
authorBogdan B <buzea.bogdan@libreoffice.org>2022-11-25 00:16:27 +0100
committerHossein <hossein@libreoffice.org>2023-06-05 13:53:16 +0200
commit2f5bffafe4f653aa4ce86f7a27305587680cba58 (patch)
tree20d6ca4396e421a9f347004d9b97ecdba8f1535e /sw/inc/editsh.hxx
parente86a0236e69d76769b91f96d71fe852b91c5db6e (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.hxx2
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 );