From 8d5db645ca0c910fc624d3513be7d312aea4a49c Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 19 Sep 2016 15:38:09 +0100 Subject: fftester: only decrement if there's a valid position before it Change-Id: I64bddeb805ac5c2ad6d76e2b3271ae8a216d603f --- sw/source/core/crsr/bookmrk.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sw') 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); } -- cgit