editeng/source/editeng/impedit.hxx  |    4 ++--
 editeng/source/editeng/impedit2.cxx |    4 ++--
 editeng/source/editeng/impedit3.cxx |    4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)

New commits:
commit ff1fdf19c44835071916d20e879c383d1513265e
Author:     Mike Kaganski <mike.kagan...@collabora.com>
AuthorDate: Sat Jul 31 09:51:42 2021 +0300
Commit:     Mike Kaganski <mike.kagan...@collabora.com>
CommitDate: Sat Jul 31 12:42:17 2021 +0200

    editengine-columns: number of columns is sal_Int16
    
    Change-Id: If0e46614a398a1b2fe93eb1bfa25b5670be3511b
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119725
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com>

diff --git a/editeng/source/editeng/impedit.hxx 
b/editeng/source/editeng/impedit.hxx
index 5be7f1bbd1c2..78b2f85f9cc7 100644
--- a/editeng/source/editeng/impedit.hxx
+++ b/editeng/source/editeng/impedit.hxx
@@ -1137,7 +1137,7 @@ public:
     };
     struct LineAreaInfo
     {
-        sal_Int32 nColumn; // Column number; when overflowing, equal to total 
number of columns
+        sal_Int16 nColumn; // Column number; when overflowing, equal to total 
number of columns
         ParaPortion& rPortion; // Current ParaPortion
         sal_Int32 nPortion;
         EditLine* pLine; // Current line, or nullptr for paragraph start
@@ -1156,7 +1156,7 @@ public:
     void IterateLineAreas(const IterateLinesAreasFunc& f, IterFlag eOptions);
 
     tools::Long GetColumnWidth(const Size& rPaperSize) const;
-    Point MoveToNextLine(Point& rMovePos, tools::Long nLineHeight, sal_Int32& 
nColumn,
+    Point MoveToNextLine(Point& rMovePos, tools::Long nLineHeight, sal_Int16& 
nColumn,
                          Point aOrigin, tools::Long* pnHeightNeededToNotWrap = 
nullptr) const;
 
     tools::Long getWidthDirectionAware(const Size& sz) const;
diff --git a/editeng/source/editeng/impedit2.cxx 
b/editeng/source/editeng/impedit2.cxx
index e31585816e13..f99ba4d0a32c 100644
--- a/editeng/source/editeng/impedit2.cxx
+++ b/editeng/source/editeng/impedit2.cxx
@@ -3112,7 +3112,7 @@ void ImpEditEngine::IterateLineAreas(const 
IterateLinesAreasFunc& f, IterFlag eO
     Point aLineStart(aOrigin);
     const tools::Long nVertLineSpacing = CalcVertLineSpacing(aLineStart);
     const tools::Long nColumnWidth = GetColumnWidth(aPaperSize);
-    sal_Int32 nColumn = 0;
+    sal_Int16 nColumn = 0;
     for (sal_Int32 n = 0, nPortions = GetParaPortions().Count(); n < 
nPortions; ++n)
     {
         ParaPortion& rPortion = GetParaPortions()[n];
@@ -3493,7 +3493,7 @@ tools::Long ImpEditEngine::CalcTextHeight(tools::Long* 
pHeightNTP)
         nCurrentTextHeight = 0;
         if (pHeightNTP)
             *pHeightNTP = 0;
-        auto GetHeightAndWantedIncrease = [&, minHeight = tools::Long(0), 
lastCol = sal_Int32(0)](
+        auto GetHeightAndWantedIncrease = [&, minHeight = tools::Long(0), 
lastCol = sal_Int16(0)](
                                               const LineAreaInfo& rInfo) 
mutable {
             if (rInfo.pLine)
             {
diff --git a/editeng/source/editeng/impedit3.cxx 
b/editeng/source/editeng/impedit3.cxx
index b98470ec2c28..e7e4445b4c6b 100644
--- a/editeng/source/editeng/impedit3.cxx
+++ b/editeng/source/editeng/impedit3.cxx
@@ -3048,7 +3048,7 @@ Size ImpEditEngine::getTopLeftDocOffset(const 
tools::Rectangle& rect) const
 Point ImpEditEngine::MoveToNextLine(
     Point& rMovePos, // [in, out] Point that will move to the next line
     tools::Long nLineHeight, // [in] Y-direction move distance 
(direction-aware)
-    sal_Int32& rColumn, // [in, out] current column number
+    sal_Int16& rColumn, // [in, out] current column number
     Point aOrigin, // [in] Origin point to calculate limits and initial Y 
position in a new column
     tools::Long* pnHeightNeededToNotWrap // On column wrap, returns how much 
more height is needed
 ) const
@@ -3123,7 +3123,7 @@ void ImpEditEngine::Paint( OutputDevice& rOutDev, 
tools::Rectangle aClipRect, Po
 
     const tools::Long nVertLineSpacing = CalcVertLineSpacing(aStartPos);
 
-    sal_Int32 nColumn = 0;
+    sal_Int16 nColumn = 0;
 
     // Over all the paragraphs...
 

Reply via email to