diff options
-rw-r--r-- | sw/source/core/crsr/bookmrk.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/core/crsr/bookmrk.cxx b/sw/source/core/crsr/bookmrk.cxx index 08594bc3d0e8..26ec9f9996ad 100644 --- a/sw/source/core/crsr/bookmrk.cxx +++ b/sw/source/core/crsr/bookmrk.cxx @@ -133,7 +133,8 @@ namespace if ( ch_end == aEndMark ) { SwPaM aEnd(rEnd, rEnd); - --aEnd.Start()->nContent; + if (aEnd.Start()->nContent > 0) + --aEnd.Start()->nContent; io_pDoc->getIDocumentContentOperations().DeleteRange(aEnd); } |