summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2014-03-01 22:20:36 +0100
committerMatteo Casalin <matteo.casalin@yahoo.com>2014-03-02 20:18:00 +0100
commit4f27cf97e6216994a971c2748bb544e85b023ff3 (patch)
tree10847ec5430e468dab39188c48f85b99b585a164 /editeng
parentc694a34261540c579c763e9d249cd5eeb5a1f34a (diff)
Use existing method instead of hand-writing
Change-Id: If28620d1e0c8b719e2d0de41831e52b238113308
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/editeng/editdoc.cxx6
1 files changed, 1 insertions, 5 deletions
diff --git a/editeng/source/editeng/editdoc.cxx b/editeng/source/editeng/editdoc.cxx
index 1ac044482b9d..d98773432160 100644
--- a/editeng/source/editeng/editdoc.cxx
+++ b/editeng/source/editeng/editdoc.cxx
@@ -1565,11 +1565,7 @@ void ContentNode::CopyAndCutAttribs( ContentNode* pPrevNode, SfxItemPool& rPool,
// Move all attributes in the current node (this)
CharAttribList::AttribsType::iterator it = rPrevAttribs.begin() + nAttr;
aCharAttribList.InsertAttrib(rPrevAttribs.release(it).release());
-
- DBG_ASSERT( pAttrib->GetStart() >= nCut, "Start < nCut!" );
- DBG_ASSERT( pAttrib->GetEnd() >= nCut, "End < nCut!" );
- pAttrib->GetStart() = pAttrib->GetStart() - nCut;
- pAttrib->GetEnd() = pAttrib->GetEnd() - nCut;
+ pAttrib->MoveBackward( nCut );
nAttr--;
}
nAttr++;