diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-09-19 15:38:09 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-09-19 15:59:03 +0100 |
commit | 8d5db645ca0c910fc624d3513be7d312aea4a49c (patch) | |
tree | 438d32e2ab32713dcf8493ae45ec5f409a096a56 /sw | |
parent | b1e9c9ae07bcdffb23925162e261633be2ee9bfe (diff) |
fftester: only decrement if there's a valid position before it
Change-Id: I64bddeb805ac5c2ad6d76e2b3271ae8a216d603f
Diffstat (limited to 'sw')
-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); } |