diff options
author | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2014-03-23 15:00:19 +0100 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2014-03-23 15:01:37 +0100 |
commit | 31b76e83d70718c95ac7913469629ea2c0294bfe (patch) | |
tree | 6380fb3d6b24ce2f8093a51bd95dcd1fbeee18c7 | |
parent | 66ebce7bb49432ab02b5c74ed4e787282b1ba474 (diff) |
fdo#74981: cutting nothing should do nothing, should fix field dupes
Change-Id: I8a8c9bfcd0943904384bb12b510a050ef8df9adf
-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 e212d558524e..017c4b6c7e21 100644 --- a/sw/source/core/txtnode/ndtxt.cxx +++ b/sw/source/core/txtnode/ndtxt.cxx @@ -1930,6 +1930,8 @@ OUString SwTxtNode::InsertText( const OUString & rStr, const SwIndex & rIdx, void SwTxtNode::CutText( SwTxtNode * const pDest, const SwIndex & rStart, const sal_Int32 nLen ) { + if(nLen == 0) + return; if(pDest) { SwIndex aDestStt(pDest, pDest->GetTxt().getLength()); |