Kaydet (Commit) 05fd8cb8 authored tarafından Samuel Mehrbrodt's avatar Samuel Mehrbrodt

tdf#93970 Outline indents should not affect paragraph indents

Change-Id: I4d9f32becc6e601cd5af64919d93f9580dec738c
üst 77104ccd
......@@ -195,15 +195,21 @@ namespace
SwNumRule * pOutlineRule = pDoc->GetOutlineNumRule();
const SwNumFormat& rNFormat = pOutlineRule->Get( nLevel );
if ( rNFormat.GetPositionAndSpaceMode() ==
SvxNumberFormat::LABEL_WIDTH_AND_POSITION &&
SvxLRSpaceItem aLR( static_cast<const SvxLRSpaceItem&>(pColl->GetFormatAttr( RES_LR_SPACE )) );
if ( rNFormat.GetPositionAndSpaceMode() == SvxNumberFormat::LABEL_WIDTH_AND_POSITION &&
( rNFormat.GetAbsLSpace() || rNFormat.GetFirstLineOffset() ) )
{
SvxLRSpaceItem aLR( static_cast<const SvxLRSpaceItem&>(pColl->GetFormatAttr( RES_LR_SPACE )) );
aLR.SetTextFirstLineOfstValue( rNFormat.GetFirstLineOffset() );
aLR.SetTextLeft( rNFormat.GetAbsLSpace() );
pColl->SetFormatAttr( aLR );
}
else
{
// tdf#93970 The indent set at the associated outline style also affects this paragraph.
// We don't want this here, so override it. This doesn't affect the outline style properties.
aLR.SetTextFirstLineOfstValue( 0 );
aLR.SetTextLeft( 0 );
}
pColl->SetFormatAttr( aLR );
// All paragraph styles, which are assigned to a level of the
// outline style has to have the outline style set as its list style.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment