diff options
author | Sven Jacobi <sj@openoffice.org> | 2001-02-09 14:41:39 +0000 |
---|---|---|
committer | Sven Jacobi <sj@openoffice.org> | 2001-02-09 14:41:39 +0000 |
commit | c13c6bafe2d73d444fdb348669a6002a917acaec (patch) | |
tree | 93a8cf26ef88232d7a5e39bc8df23bf7ea936d98 | |
parent | bdc8ec306484355e8fae98d5abee0c38a630c3b5 (diff) |
take care of tabulators when they commes first in a paragraph (Issue150)
-rw-r--r-- | svx/source/svdraw/svdfppt.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/svx/source/svdraw/svdfppt.cxx b/svx/source/svdraw/svdfppt.cxx index e050e8ff85bb..043fd2008de7 100644 --- a/svx/source/svdraw/svdfppt.cxx +++ b/svx/source/svdraw/svdfppt.cxx @@ -2,9 +2,9 @@ * * $RCSfile: svdfppt.cxx,v $ * - * $Revision: 1.23 $ + * $Revision: 1.24 $ * - * last change: $Author: sj $ $Date: 2001-02-09 12:54:23 $ + * last change: $Author: sj $ $Date: 2001-02-09 15:41:39 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -2256,12 +2256,13 @@ SdrObject* SdrPowerPointImport::ApplyTextObj( PPTTextObj* pTextObj, SdrTextObj* sal_uInt16 nParaIndex = (UINT16)pTextObj->GetCurrentIndex(); SfxStyleSheet* pS = ( ppStyleSheetAry ) ? ppStyleSheetAry[ pPara->pParaSet->mnDepth ] : pSheet; - rOutliner.Insert( String( pParaText, (UINT16)nCurrentIndex ), nParaIndex, pPara->GetLevel() ); + ESelection aSelection( nParaIndex, 0, nParaIndex, 0 ); + rOutliner.Insert( String(), nParaIndex, pPara->GetLevel() ); + rOutliner.QuickInsertText( String( pParaText, (UINT16)nCurrentIndex ), aSelection ); rOutliner.SetParaAttribs( nParaIndex, rOutliner.GetEmptyItemSet() ); if ( pS ) rOutliner.SetStyleSheet( nParaIndex, pS ); - ESelection aSelection( nParaIndex, 0, nParaIndex, 0 ); for ( pPortion = pPara->First(); pPortion; pPortion = pPara->Next() ) { SfxItemSet aPortionAttribs( rOutliner.GetEmptyItemSet() ); |