summaryrefslogtreecommitdiff
path: root/sw/source/core/text/redlnitr.cxx
diff options
context:
space:
mode:
authorFrank Meies <fme@openoffice.org>2002-02-22 10:01:58 +0000
committerFrank Meies <fme@openoffice.org>2002-02-22 10:01:58 +0000
commit64be719d9c0ac92c4fac6b0f7e3c61758266757d (patch)
tree9c89fcc825b003fcfdbd33b68ebddd2ff20baff0 /sw/source/core/text/redlnitr.cxx
parente1efae8710caf29dfc9d6b826e7b606e1cc4414e (diff)
Fix #96216#: Consider attribute changes at position 0 during extended input mode
Diffstat (limited to 'sw/source/core/text/redlnitr.cxx')
-rw-r--r--sw/source/core/text/redlnitr.cxx14
1 files changed, 11 insertions, 3 deletions
diff --git a/sw/source/core/text/redlnitr.cxx b/sw/source/core/text/redlnitr.cxx
index 1bd83738d965..0bbd2627afc3 100644
--- a/sw/source/core/text/redlnitr.cxx
+++ b/sw/source/core/text/redlnitr.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: redlnitr.cxx,v $
*
- * $Revision: 1.24 $
+ * $Revision: 1.25 $
*
- * last change: $Author: fme $ $Date: 2001-12-14 12:12:05 $
+ * last change: $Author: fme $ $Date: 2002-02-22 11:01:58 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -444,9 +444,17 @@ void SwRedlineItr::ChangeTxtAttr( SwFont* pFnt, SwTxtAttr &rHt, sal_Bool bChg )
return;
if( bChg )
- rAttrHandler.PushAndChg( rHt, *pFnt );
+ {
+ if ( pExt && pExt->IsOn() )
+ rAttrHandler.PushAndChg( rHt, *pExt->GetFont() );
+ else
+ rAttrHandler.PushAndChg( rHt, *pFnt );
+ }
else
+ {
+ ASSERT( ! pExt || ! pExt->IsOn(), "Pop of attribute during opened extension" )
rAttrHandler.PopAndChg( rHt, *pFnt );
+ }
}
void SwRedlineItr::_Clear( SwFont* pFnt )