diff options
-rw-r--r-- | svx/source/table/tablelayouter.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/table/tablelayouter.cxx b/svx/source/table/tablelayouter.cxx index 2b150e365456..e0ba76552c61 100644 --- a/svx/source/table/tablelayouter.cxx +++ b/svx/source/table/tablelayouter.cxx @@ -85,7 +85,7 @@ basegfx::B2ITuple TableLayouter::getCellSize( const CellRef& xCell, const CellPo if( ((sal_Int32)maRows.size()) <= aPos.mnRow ) break; - height += maRows[aPos.mnRow++].mnSize; + height = o3tl::saturating_add(height, maRows[aPos.mnRow++].mnSize); nRowSpan--; } @@ -96,7 +96,7 @@ basegfx::B2ITuple TableLayouter::getCellSize( const CellRef& xCell, const CellPo if( ((sal_Int32)maColumns.size()) <= aPos.mnCol ) break; - width += maColumns[aPos.mnCol++].mnSize; + width = o3tl::saturating_add(width, maColumns[aPos.mnCol++].mnSize); nColSpan--; } } |