Display correct errorbar in InsertDialog.

This commit is contained in:
Rafael Dominguez 2012-03-11 19:52:55 +00:00 committed by Markus Mohrhard
parent 2a1d5a428d
commit 2ea77e4926

View file

@ -546,7 +546,7 @@ void ChartController::executeDispatch_InsertErrorBars( bool bYError )
InsertErrorBarsDialog aDlg(
m_pChartWindow, aItemSet,
uno::Reference< chart2::XChartDocument >( getModel(), uno::UNO_QUERY ),
ErrorBarResources::ERROR_BAR_Y);
bYError ? ErrorBarResources::ERROR_BAR_Y : ErrorBarResources::ERROR_BAR_X);
aDlg.SetAxisMinorStepWidthForErrorBarDecimals(
InsertErrorBarsDialog::getAxisMinorStepWidthForErrorBarDecimals( getModel(), m_xChartView, rtl::OUString() ) );