diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2024-09-28 21:21:25 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-09-29 11:57:00 +0200 |
commit | 0e955c4b236bcf9e66e7b49cc3ae285f1a4a9e32 (patch) | |
tree | 7eda43642f9c8000c1c078db9eedd0af11fde7b2 | |
parent | f213fcb8c75cde4a9ea5075ac87eea6af470bbac (diff) |
cid#1607049 Overflowed constant
Change-Id: I9f031fa3ad7a216435c72692d92d7b566417977b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174156
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r-- | editeng/source/editeng/impedit2.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editeng/source/editeng/impedit2.cxx b/editeng/source/editeng/impedit2.cxx index e4392c73453a..91a4456989cb 100644 --- a/editeng/source/editeng/impedit2.cxx +++ b/editeng/source/editeng/impedit2.cxx @@ -2490,8 +2490,8 @@ EditPaM ImpEditEngine::ImpDeleteSelection(const EditSelection& rCurSel) sal_Int32 nStartNode = maEditDoc.GetPos( aStartPaM.GetNode() ); sal_Int32 nEndNode = maEditDoc.GetPos( aEndPaM.GetNode() ); - OSL_ENSURE( nEndNode != EE_PARA_NOT_FOUND, "Start > End ?!" ); - OSL_ENSURE( nStartNode <= nEndNode, "Start > End ?!" ); + assert( nEndNode != EE_PARA_NOT_FOUND && "Start > End ?!" ); + assert( nStartNode <= nEndNode && "Start > End ?!" ); // Remove all nodes in between... for ( sal_Int32 z = nStartNode+1; z < nEndNode; z++ ) |