Kaydet (Commit) 774257d6 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

it works if we first set the size and then the position, tdf#86624

Change-Id: I8ed98981ef3041839ab73b749a04febe369f66fe
üst cc8b8e84
...@@ -188,14 +188,14 @@ void SchXMLLegendContext::StartElement( const uno::Reference< xml::sax::XAttribu ...@@ -188,14 +188,14 @@ void SchXMLLegendContext::StartElement( const uno::Reference< xml::sax::XAttribu
} }
} }
if( bHasXPosition && bHasYPosition )
xLegendShape->setPosition( aLegendPos );
if( bHasExpansion && nLegendExpansion!= chart::ChartLegendExpansion_CUSTOM ) if( bHasExpansion && nLegendExpansion!= chart::ChartLegendExpansion_CUSTOM )
xLegendProps->setPropertyValue("Expansion", uno::makeAny(nLegendExpansion) ); xLegendProps->setPropertyValue("Expansion", uno::makeAny(nLegendExpansion) );
else if( bHasHeight && bHasWidth ) else if( bHasHeight && bHasWidth )
xLegendShape->setSize( aLegendSize ); xLegendShape->setSize( aLegendSize );
if( bHasXPosition && bHasYPosition )
xLegendShape->setPosition( aLegendPos );
// the fill style has the default "none" in XML, but "solid" in the model. // the fill style has the default "none" in XML, but "solid" in the model.
xLegendProps->setPropertyValue("FillStyle", uno::makeAny( drawing::FillStyle_NONE )); xLegendProps->setPropertyValue("FillStyle", uno::makeAny( drawing::FillStyle_NONE ));
......
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