n#827332: Charts shrink when there are no legends.

This commit is contained in:
Muthu Subramanian
2013-07-25 11:19:53 +05:30
parent e0e236c49c
commit 1543cf5eb6

View File

@@ -944,14 +944,16 @@ void VLegend::createShapes(
bool bSymbolsLeftSide = lcl_shouldSymbolsBePlacedOnTheLeftSide( xLegendProp, m_nDefaultWritingMode ); bool bSymbolsLeftSide = lcl_shouldSymbolsBePlacedOnTheLeftSide( xLegendProp, m_nDefaultWritingMode );
if( aViewEntries.size() ) {
// place entries // place entries
aLegendSize = lcl_placeLegendEntries( aViewEntries, eExpansion, bSymbolsLeftSide, fViewFontSize, aMaxSymbolExtent aLegendSize = lcl_placeLegendEntries( aViewEntries, eExpansion, bSymbolsLeftSide, fViewFontSize, aMaxSymbolExtent,
, aTextProperties, xLegendContainer, m_xShapeFactory, aLegendSize ); aTextProperties, xLegendContainer, m_xShapeFactory, aLegendSize );
if( xBorder.is() ) if( xBorder.is() )
xBorder->setSize( aLegendSize ); xBorder->setSize( aLegendSize );
} }
} }
}
catch( const uno::Exception & ex ) catch( const uno::Exception & ex )
{ {
ASSERT_EXCEPTION( ex ); ASSERT_EXCEPTION( ex );