diff options
author | Malte Timmermann <mt@openoffice.org> | 2001-08-21 10:00:40 +0000 |
---|---|---|
committer | Malte Timmermann <mt@openoffice.org> | 2001-08-21 10:00:40 +0000 |
commit | 813d7587055b72901be52e003ed4eee3ba9aec22 (patch) | |
tree | 4601f9e52de670766723adfa88002e045c06c8ad /svx/source/editeng/impedit5.cxx | |
parent | #91330# openFileReadWrite(): Catch com.sun.ucb.NameClashException (diff) | |
download | core-813d7587055b72901be52e003ed4eee3ba9aec22.tar.gz core-813d7587055b72901be52e003ed4eee3ba9aec22.zip |
#91105# Don't check for OutlinerMode in Set/GetParaAttrib()
Diffstat (limited to 'svx/source/editeng/impedit5.cxx')
-rw-r--r-- | svx/source/editeng/impedit5.cxx | 23 |
1 files changed, 4 insertions, 19 deletions
diff --git a/svx/source/editeng/impedit5.cxx b/svx/source/editeng/impedit5.cxx index 91e8bcd66061..f4dd9c4248cc 100644 --- a/svx/source/editeng/impedit5.cxx +++ b/svx/source/editeng/impedit5.cxx @@ -2,9 +2,9 @@ * * $RCSfile: impedit5.cxx,v $ * - * $Revision: 1.12 $ + * $Revision: 1.13 $ * - * last change: $Author: cl $ $Date: 2001-08-05 15:22:46 $ + * last change: $Author: mt $ $Date: 2001-08-21 11:00:40 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -758,18 +758,7 @@ BOOL ImpEditEngine::HasParaAttrib( USHORT nPara, USHORT nWhich ) const ContentNode* pNode = aEditDoc.GetObject( nPara ); DBG_ASSERT( pNode, "Node nicht gefunden: HasParaAttrib" ); - // LRSPACE kann ggf. auch OUTLLRSPACE sein! - - BOOL bHasItem = pNode->GetContentAttribs().HasItem( nWhich ); - if ( nWhich == EE_PARA_LRSPACE ) - { - if ( aStatus.IsOutliner() || - ( aStatus.IsOutliner2() && !pNode->GetContentAttribs().HasItem( EE_PARA_LRSPACE ) ) ) - { - bHasItem = pNode->GetContentAttribs().HasItem( EE_PARA_OUTLLRSPACE ); - } - } - return bHasItem; + return pNode->GetContentAttribs().HasItem( nWhich ); } const SfxPoolItem& ImpEditEngine::GetParaAttrib( USHORT nPara, USHORT nWhich ) @@ -777,11 +766,7 @@ const SfxPoolItem& ImpEditEngine::GetParaAttrib( USHORT nPara, USHORT nWhich ) ContentNode* pNode = aEditDoc.GetObject( nPara ); DBG_ASSERT( pNode, "Node nicht gefunden: GetParaAttrib" ); - // LRSPACE kann ggf. auch OUTLLRSPACE sein! - if ( nWhich != EE_PARA_LRSPACE ) - return pNode->GetContentAttribs().GetItem( nWhich ); - else - return GetLRSpaceItem( pNode ); + return pNode->GetContentAttribs().GetItem( nWhich ); } void ImpEditEngine::GetCharAttribs( USHORT nPara, EECharAttribArray& rLst ) const |