diff options
Diffstat (limited to 'sw/source/core/undo/unnum.cxx')
-rw-r--r-- | sw/source/core/undo/unnum.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/undo/unnum.cxx b/sw/source/core/undo/unnum.cxx index cf1fbfa0e8fc..a4b4e766f2f7 100644 --- a/sw/source/core/undo/unnum.cxx +++ b/sw/source/core/undo/unnum.cxx @@ -165,7 +165,7 @@ void SwUndoInsNum::SaveOldNumRule( const SwNumRule& rOld ) SwUndoDelNum::SwUndoDelNum( const SwPaM& rPam ) : SwUndo( SwUndoId::DELNUM, rPam.GetDoc() ), SwUndRng( rPam ) { - aNodes.reserve( nEndNode - nSttNode > 255 ? 255 : nEndNode - nSttNode ); + aNodes.reserve( std::min<sal_uLong>(nEndNode - nSttNode, 255) ); pHistory.reset( new SwHistory ); } |