chart45: #i80377# don't wrap wide legends so early

This commit is contained in:
Ingrid Halama 2010-03-25 16:58:58 +01:00
parent 0dc23b7077
commit fe03f2e6f1

View file

@ -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())