diff options
author | Michael Stahl <mstahl@redhat.com> | 2014-12-15 21:19:01 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2014-12-15 22:18:13 +0100 |
commit | 0f78ae1ca33f83737553ad204c869a63498b7d2d (patch) | |
tree | 86a945e082534b12d8b04bbce616e6793776cd3b | |
parent | 6d8ab70f1da785767e539383087258bd666fbf62 (diff) |
fdo#85876: Revert "fdo#74981: cutting nothing should do nothing, ...
... should fix field dupes"
This reverts commit f384598d8eec91c3c0f84a07ff3e59b8e3e13b3f.
The attributes have to be copied in case splitting a paragraph creates
an empty paragraph.
Change-Id: Icd5730dd9ab8a68f737492645988a4d2f07af7a0
-rw-r--r-- | sw/source/core/txtnode/ndtxt.cxx | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sw/source/core/txtnode/ndtxt.cxx b/sw/source/core/txtnode/ndtxt.cxx index 211c26d3433b..20fc6697abdf 100644 --- a/sw/source/core/txtnode/ndtxt.cxx +++ b/sw/source/core/txtnode/ndtxt.cxx @@ -2014,8 +2014,6 @@ 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()); |