[Libreoffice-commits] core.git: Branch 'libreoffice-4-2' - sw/source

Bjoern Michaelsen bjoern.michaelsen at canonical.com
Tue Mar 25 13:21:15 PDT 2014


 sw/source/core/txtnode/ndtxt.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit f384598d8eec91c3c0f84a07ff3e59b8e3e13b3f
Author: Bjoern Michaelsen <bjoern.michaelsen at canonical.com>
Date:   Sun Mar 23 15:00:19 2014 +0100

    fdo#74981: cutting nothing should do nothing, should fix field dupes
    
    Change-Id: I8a8c9bfcd0943904384bb12b510a050ef8df9adf
    Reviewed-on: https://gerrit.libreoffice.org/8730
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/sw/source/core/txtnode/ndtxt.cxx b/sw/source/core/txtnode/ndtxt.cxx
index 619e203..2be6fbb9 100644
--- a/sw/source/core/txtnode/ndtxt.cxx
+++ b/sw/source/core/txtnode/ndtxt.cxx
@@ -1923,6 +1923,8 @@ OUString SwTxtNode::InsertText( const OUString & rStr, const SwIndex & rIdx,
 void SwTxtNode::CutText( SwTxtNode * const pDest,
             const SwIndex & rStart, const xub_StrLen nLen )
 {
+    if(nLen == 0)
+        return;
     if(pDest)
     {
         SwIndex aDestStt(pDest, pDest->GetTxt().getLength());


More information about the Libreoffice-commits mailing list