Kaydet (Commit) 05a0b086 authored tarafından Katarina Machalkova's avatar Katarina Machalkova

fdo#37197: No legend entry for regression curve if not applicable

make the original check more general, to cover all chart types that
don't support statistics
üst 07342a6a
......@@ -2303,8 +2303,9 @@ std::vector< ViewLegendEntry > VSeriesPlotter::createLegendEntriesForSeries(
aResult.push_back(aEntry);
}
// regression curves
if ( 3 == m_nDimension ) // #i63016#
// don't show legend entry of regression curve & friends if this type of chart
// doesn't support statistics #i63016#, fdo#37197
if (!ChartTypeHelper::isSupportingStatisticProperties( m_xChartTypeModel, m_nDimension ))
return aResult;
Reference< XRegressionCurveContainer > xRegrCont( rSeries.getModel(), uno::UNO_QUERY );
......
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