Kaydet (Commit) 8d5db645 authored tarafından Caolán McNamara's avatar Caolán McNamara

fftester: only decrement if there's a valid position before it

Change-Id: I64bddeb805ac5c2ad6d76e2b3271ae8a216d603f
üst b1e9c9ae
...@@ -133,7 +133,8 @@ namespace ...@@ -133,7 +133,8 @@ namespace
if ( ch_end == aEndMark ) if ( ch_end == aEndMark )
{ {
SwPaM aEnd(rEnd, rEnd); SwPaM aEnd(rEnd, rEnd);
--aEnd.Start()->nContent; if (aEnd.Start()->nContent > 0)
--aEnd.Start()->nContent;
io_pDoc->getIDocumentContentOperations().DeleteRange(aEnd); io_pDoc->getIDocumentContentOperations().DeleteRange(aEnd);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment