summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZheng Fan <zhengfan@apache.org>2013-05-17 03:36:26 +0000
committerZheng Fan <zhengfan@apache.org>2013-05-17 03:36:26 +0000
commitfb3ddd41bc9dd2fbdd856c13bdec61906d01fd02 (patch)
treee55b9ca80beacfe740425598b4149fb030c5a56b
parent4b07fb34d00c9e7292d66658f4f6ff040c2267c2 (diff)
i121897, change the hints clearing method from RstAttr to clearSwpHhints.
Notes
-rw-r--r--sw/source/core/undo/untblk.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sw/source/core/undo/untblk.cxx b/sw/source/core/undo/untblk.cxx
index 40413c253159..8dfd472f1322 100644
--- a/sw/source/core/undo/untblk.cxx
+++ b/sw/source/core/undo/untblk.cxx
@@ -248,8 +248,9 @@ void SwUndoInserts::UndoImpl(::sw::UndoRedoContext & rContext)
pTxtNode->JoinNext();
}
// reset all text attributes in the paragraph!
- pTxtNode->RstAttr( SwIndex(pTxtNode, 0), pTxtNode->Len(),
- 0, 0, true );
+ //i121897, change the hints clearing method from 'RstAttr' to 'ClarSwpHints' as the certain tox mark index hint reason
+ if( pTxtNode && pTxtNode->GetpSwpHints() )
+ pTxtNode->ClearSwpHintsArr( true );
// setze alle Attribute im Node zurueck
pTxtNode->ResetAllAttr();