[Libreoffice-commits] core.git: sw/source

Julien Nabet serval2412 at yahoo.fr
Sun Jan 24 03:07:49 PST 2016


 sw/source/core/doc/DocumentContentOperationsManager.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 96d6ceac915b8a5a1f5165ff2941c59e4ad3cb8c
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Sun Jan 24 12:07:09 2016 +0100

    cppcheck: fix a duplicateExpression
    
    Change-Id: If3fadffa9b43c88552e8e2cbf213bd840ab9204a

diff --git a/sw/source/core/doc/DocumentContentOperationsManager.cxx b/sw/source/core/doc/DocumentContentOperationsManager.cxx
index 58d28b2..1cbe471 100644
--- a/sw/source/core/doc/DocumentContentOperationsManager.cxx
+++ b/sw/source/core/doc/DocumentContentOperationsManager.cxx
@@ -4466,7 +4466,7 @@ bool DocumentContentOperationsManager::CopyImpl( SwPaM& rPam, SwPosition& rPos,
     else
     {
         // Reset the offset to 0 as it was before the insertion
-        pCopyPam->GetPoint()->nContent -= pCopyPam->GetPoint()->nContent;
+        pCopyPam->GetPoint()->nContent = 0;
 
         pCopyPam->GetPoint()->nNode++;
         // If the next node is a start node, then step back: the start node


More information about the Libreoffice-commits mailing list