Kaydet (Commit) 0f78ae1c authored tarafından Michael Stahl's avatar Michael Stahl

fdo#85876: Revert "fdo#74981: cutting nothing should do nothing, ...

... should fix field dupes"

This reverts commit f384598d.

The attributes have to be copied in case splitting a paragraph creates
an empty paragraph.

Change-Id: Icd5730dd9ab8a68f737492645988a4d2f07af7a0
üst 6d8ab70f
...@@ -2014,8 +2014,6 @@ OUString SwTxtNode::InsertText( const OUString & rStr, const SwIndex & rIdx, ...@@ -2014,8 +2014,6 @@ OUString SwTxtNode::InsertText( const OUString & rStr, const SwIndex & rIdx,
void SwTxtNode::CutText( SwTxtNode * const pDest, void SwTxtNode::CutText( SwTxtNode * const pDest,
const SwIndex & rStart, const sal_Int32 nLen ) const SwIndex & rStart, const sal_Int32 nLen )
{ {
if(nLen == 0)
return;
if(pDest) if(pDest)
{ {
SwIndex aDestStt(pDest, pDest->GetTxt().getLength()); SwIndex aDestStt(pDest, pDest->GetTxt().getLength());
......
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