overlap is only valid for the 2D bar chart, related fdo#59857

Change-Id: Ie17ef54a2b2f2058cef97dacd9110a3065f76f68
This commit is contained in:
Markus Mohrhard
2013-05-05 18:59:34 +02:00
parent 16010abe01
commit 010f58c4ef

View File

@@ -1156,7 +1156,7 @@ void ChartExport::exportBarChart( Reference< chart2::XChartType > xChartType )
}
//overlap
if( xTypeProp.is() && GetProperty( xTypeProp, "OverlapSequence") )
if( !mbIs3DChart && xTypeProp.is() && GetProperty( xTypeProp, "OverlapSequence") )
{
uno::Sequence< sal_Int32 > aBarPositionSequence;
mAny >>= aBarPositionSequence;
@@ -1169,18 +1169,6 @@ void ChartExport::exportBarChart( Reference< chart2::XChartType > xChartType )
FSEND );
}
}
if( xTypeProp.is() && GetProperty( xTypeProp, "GapwidthSequence") )
{
uno::Sequence< sal_Int32 > aBarPositionSequence;
mAny >>= aBarPositionSequence;
if( aBarPositionSequence.getLength() )
{
sal_Int32 nGapWidth = aBarPositionSequence[0];
pFS->singleElement( FSNS( XML_c, XML_gapWidth ),
XML_val, I32S( nGapWidth ),
FSEND );
}
}
exportAxesId( nAttachedAxis );