summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2016-01-24 12:07:09 +0100
committerJulien Nabet <serval2412@yahoo.fr>2016-01-24 12:07:09 +0100
commit96d6ceac915b8a5a1f5165ff2941c59e4ad3cb8c (patch)
treecf3e04d109f074f19b70bc1ebcfacedbe7514492 /sw
parentb41deb2ef057c3bd43fa61448bb4d7299138c8d4 (diff)
cppcheck: fix a duplicateExpression
Change-Id: If3fadffa9b43c88552e8e2cbf213bd840ab9204a
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/doc/DocumentContentOperationsManager.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/doc/DocumentContentOperationsManager.cxx b/sw/source/core/doc/DocumentContentOperationsManager.cxx
index 58d28b238ee9..1cbe47147eda 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