diff options
author | Dieter Loeschky <dl@openoffice.org> | 2001-06-25 07:33:21 +0000 |
---|---|---|
committer | Dieter Loeschky <dl@openoffice.org> | 2001-06-25 07:33:21 +0000 |
commit | aec610b1f8eda14aa6ef55a5048c20faf49e0601 (patch) | |
tree | 96f28ff56aef351801e70a6ab0fa3defdfc6b9a1 /svx/source/svdraw/svdotxat.cxx | |
parent | 40434987634860fa5ae1f4b80f4c5f5fe02cc169 (diff) |
#87952# NbcSetStyleSheet(): get correct style sheet for level 0
Diffstat (limited to 'svx/source/svdraw/svdotxat.cxx')
-rw-r--r-- | svx/source/svdraw/svdotxat.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/svx/source/svdraw/svdotxat.cxx b/svx/source/svdraw/svdotxat.cxx index 1fd88f639613..63f8d00fa6a8 100644 --- a/svx/source/svdraw/svdotxat.cxx +++ b/svx/source/svdraw/svdotxat.cxx @@ -2,9 +2,9 @@ * * $RCSfile: svdotxat.cxx,v $ * - * $Revision: 1.17 $ + * $Revision: 1.18 $ * - * last change: $Author: dl $ $Date: 2001-05-11 10:20:14 $ + * last change: $Author: dl $ $Date: 2001-06-25 08:33:21 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -202,11 +202,12 @@ void SdrTextObj::NbcSetStyleSheet(SfxStyleSheet* pNewStyleSheet, FASTBOOL bDontR { if ( GetStyleSheet() ) { - if( nPara > 0 && eTextKind == OBJ_OUTLINETEXT && GetObjInventor() == SdrInventor ) + if( eTextKind == OBJ_OUTLINETEXT && GetObjInventor() == SdrInventor ) { String aNewStyleSheetName( GetStyleSheet()->GetName() ); aNewStyleSheetName.Erase( aNewStyleSheetName.Len()-1, 1 ); aNewStyleSheetName += String::CreateFromInt32( rOutliner.GetDepth( nPara ) ); + SfxStyleSheetBasePool* pStylePool = pModel!=NULL ? pModel->GetStyleSheetPool() : NULL; SfxStyleSheet* pNewStyle = (SfxStyleSheet*) pStylePool->Find( aNewStyleSheetName, GetStyleSheet()->GetFamily() ); DBG_ASSERT( pNewStyle, "AutoStyleSheetName - Style not found!" ); |