summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2014-12-15 21:19:01 +0100
committerMichael Stahl <mstahl@redhat.com>2014-12-15 22:21:48 +0100
commitd1f4dc626cab09c8ab7e37f6f7b695267bef78c2 (patch)
treee4f5241206c74650df3395958af51d109cb1b823 /sw
parentadaf8d3b84720f3417072049d1d38c8b56c54ed4 (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 (cherry picked from commit 0f78ae1ca33f83737553ad204c869a63498b7d2d)
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/txtnode/ndtxt.cxx2
1 files changed, 0 insertions, 2 deletions
diff --git a/sw/source/core/txtnode/ndtxt.cxx b/sw/source/core/txtnode/ndtxt.cxx
index 5b347df7f7da..5e0fd19f0ee9 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());