summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorFrank Meies <fme@openoffice.org>2002-12-12 13:55:03 +0000
committerFrank Meies <fme@openoffice.org>2002-12-12 13:55:03 +0000
commit4b1719c95ed0256cc504e562a78619f0550d8f58 (patch)
treefa3410536869a1e2b76b2832f217a372dc333be7 /sw
parentcf9813aec777301af1e795611f92254f12db0c66 (diff)
#106241# Handle special case pPrev equals pNext during merging of attributes
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/txtnode/thints.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/sw/source/core/txtnode/thints.cxx b/sw/source/core/txtnode/thints.cxx
index ebf4322fa53a..9b14c2f9a801 100644
--- a/sw/source/core/txtnode/thints.cxx
+++ b/sw/source/core/txtnode/thints.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: thints.cxx,v $
*
- * $Revision: 1.27 $
+ * $Revision: 1.28 $
*
- * last change: $Author: fme $ $Date: 2002-09-11 15:12:48 $
+ * last change: $Author: fme $ $Date: 2002-12-12 14:55:03 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1491,6 +1491,9 @@ BOOL SwpHints::Merge( SwTxtNode &rNode, SwTxtAttr* pAttr )
{
if( pNext )
{
+ if ( pPrev == pNext )
+ pPrev = NULL;
+
if( pHistory )
{
pHistory->Add( pAttr );