chart45: #i80377# don't wrap wide legends so early
This commit is contained in:
parent
0dc23b7077
commit
fe03f2e6f1
1 changed files with 8 additions and 3 deletions
|
@ -678,11 +678,16 @@ void VLegend::createShapes(
|
|||
LegendExpansion eExpansion = LegendExpansion_HIGH;
|
||||
if( xLegendProp.is())
|
||||
{
|
||||
lcl_getProperties( xLegendProp, aLineFillProperties, aTextProperties, nMaxLabelWidth,
|
||||
rPageSize );
|
||||
|
||||
// get Expansion property
|
||||
xLegendProp->getPropertyValue( C2U( "Expansion" )) >>= eExpansion;
|
||||
if( eExpansion == LegendExpansion_WIDE )
|
||||
{
|
||||
//#i80377#
|
||||
nMaxLabelWidth = (rAvailableSpace.Width * 5) / 6;//completely correct would be available width minus symbol size minus distances to page ...
|
||||
}
|
||||
|
||||
lcl_getProperties( xLegendProp, aLineFillProperties, aTextProperties, nMaxLabelWidth,
|
||||
rPageSize );
|
||||
}
|
||||
|
||||
if( xBorder.is())
|
||||
|
|
Loading…
Reference in a new issue