diff options
author | Frank Meies <fme@openoffice.org> | 2001-07-12 10:21:31 +0000 |
---|---|---|
committer | Frank Meies <fme@openoffice.org> | 2001-07-12 10:21:31 +0000 |
commit | 3702c559bb6b23732b24dcc7994ae2333f1c4544 (patch) | |
tree | 39245e8ad3a8d7d90b3cf1703a0aa3531232eaae /sw/source/core/text/itratr.cxx | |
parent | 41b14262916b6ab8b66b0e5b1f8f0254936ea542 (diff) |
Opt #89492#: Store the default font for the paragraph
Diffstat (limited to 'sw/source/core/text/itratr.cxx')
-rw-r--r-- | sw/source/core/text/itratr.cxx | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/sw/source/core/text/itratr.cxx b/sw/source/core/text/itratr.cxx index 05d096220315..ddd9755ef598 100644 --- a/sw/source/core/text/itratr.cxx +++ b/sw/source/core/text/itratr.cxx @@ -2,9 +2,9 @@ * * $RCSfile: itratr.cxx,v $ * - * $Revision: 1.15 $ + * $Revision: 1.16 $ * - * last change: $Author: fme $ $Date: 2001-04-09 10:41:08 $ + * last change: $Author: fme $ $Date: 2001-07-12 11:19:17 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -291,11 +291,10 @@ sal_Bool SwAttrIter::SeekStartAndChg( OutputDevice *pOut, const sal_Bool bParaFo if ( pRedln && pRedln->ExtOn() ) pRedln->LeaveExtend( *pFnt, 0 ); - // Gehe zurueck auf Start ... + // reset font to its original state aAttrHandler.Reset(); - pFnt->SetFnt( aAttrHandler ); - pFnt->GetTox() = 0; - pFnt->GetRef() = 0; + aAttrHandler.ResetFont( *pFnt ); + nStartIndex = nEndIndex = nPos = nChgCnt = 0; if( nPropFont ) pFnt->SetProportion( nPropFont ); @@ -399,13 +398,13 @@ sal_Bool SwAttrIter::Seek( const xub_StrLen nNewPos ) { if( !nNewPos || nNewPos < nPos ) { - // Gehe zurueck auf Start ... if( pRedln ) pRedln->Clear( NULL ); + + // reset font to its original state aAttrHandler.Reset(); - pFnt->SetFnt( aAttrHandler ); - pFnt->GetTox() = 0; - pFnt->GetRef() = 0; + aAttrHandler.ResetFont( *pFnt ); + if( nPropFont ) pFnt->SetProportion( nPropFont ); nStartIndex = nEndIndex = nPos = 0; |