diff options
author | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2014-03-23 15:00:19 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-03-25 20:20:51 +0000 |
commit | f384598d8eec91c3c0f84a07ff3e59b8e3e13b3f (patch) | |
tree | 661d7a9a705ed1a8cc25b3a8fb169ea9ba379bd8 | |
parent | 19f74aed27868105bc67c642dff0c3e1cb7594c2 (diff) |
fdo#74981: cutting nothing should do nothing, should fix field dupes
Change-Id: I8a8c9bfcd0943904384bb12b510a050ef8df9adf
Reviewed-on: https://gerrit.libreoffice.org/8730
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | sw/source/core/txtnode/ndtxt.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sw/source/core/txtnode/ndtxt.cxx b/sw/source/core/txtnode/ndtxt.cxx index 619e2031f2a4..2be6fbb9edf8 100644 --- a/sw/source/core/txtnode/ndtxt.cxx +++ b/sw/source/core/txtnode/ndtxt.cxx @@ -1923,6 +1923,8 @@ OUString SwTxtNode::InsertText( const OUString & rStr, const SwIndex & rIdx, void SwTxtNode::CutText( SwTxtNode * const pDest, const SwIndex & rStart, const xub_StrLen nLen ) { + if(nLen == 0) + return; if(pDest) { SwIndex aDestStt(pDest, pDest->GetTxt().getLength()); |