diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2003-05-26 08:07:07 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2003-05-26 08:07:07 +0000 |
commit | 501384597880f2e2c1c0a37495547ea5c78a7d4c (patch) | |
tree | 9fa55b4e2209189f9ff16fc004c79bab8cb5fccf /svx/source/unodraw/unoshtxt.cxx | |
parent | 4f8e42cdd06b71f46851fb53bf5504b2aed848fe (diff) |
INTEGRATION: CWS draw12 (1.45.30); FILE MERGED
2003/05/16 14:40:06 thb 1.45.30.1: #109151# Do the background outliner setup _after_ it's creation
Diffstat (limited to 'svx/source/unodraw/unoshtxt.cxx')
-rw-r--r-- | svx/source/unodraw/unoshtxt.cxx | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/svx/source/unodraw/unoshtxt.cxx b/svx/source/unodraw/unoshtxt.cxx index 4ef8fbf031..2941eb733f 100644 --- a/svx/source/unodraw/unoshtxt.cxx +++ b/svx/source/unodraw/unoshtxt.cxx @@ -2,9 +2,9 @@ * * $RCSfile: unoshtxt.cxx,v $ * - * $Revision: 1.45 $ + * $Revision: 1.46 $ * - * last change: $Author: hr $ $Date: 2003-04-28 15:28:15 $ + * last change: $Author: vg $ $Date: 2003-05-26 09:07:07 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -552,18 +552,20 @@ SvxTextForwarder* SvxTextEditSourceImpl::GetBackgroundTextForwarder() { if( mpOutliner == NULL ) { - if( HasView() ) - { - // #101029#, #104157# Setup outliner _before_ filling it - SetupOutliner(); - } - SdrTextObj* pTextObj = PTR_CAST( SdrTextObj, mpObject ); USHORT nOutlMode = OUTLINERMODE_TEXTOBJECT; if( pTextObj && pTextObj->IsTextFrame() && pTextObj->GetTextKind() == OBJ_OUTLINETEXT ) nOutlMode = OUTLINERMODE_OUTLINEOBJECT; mpOutliner = mpModel->createOutliner( nOutlMode ); + + // #109151# Do the setup after outliner creation, would be useless otherwise + if( HasView() ) + { + // #101029#, #104157# Setup outliner _before_ filling it + SetupOutliner(); + } + mpOutliner->SetTextObjNoInit( pTextObj ); /* mpOutliner = SdrMakeOutliner( nOutlMode, pModel ); |