Kaydet (Commit) 31b76e83 authored tarafından Bjoern Michaelsen's avatar Bjoern Michaelsen

fdo#74981: cutting nothing should do nothing, should fix field dupes

Change-Id: I8a8c9bfcd0943904384bb12b510a050ef8df9adf
üst 66ebce7b
...@@ -1930,6 +1930,8 @@ OUString SwTxtNode::InsertText( const OUString & rStr, const SwIndex & rIdx, ...@@ -1930,6 +1930,8 @@ 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