From 2ea77e4926edd4a01cd2ed969128b4ba24c0804c Mon Sep 17 00:00:00 2001 From: Rafael Dominguez Date: Sun, 11 Mar 2012 19:52:55 +0000 Subject: [PATCH] Display correct errorbar in InsertDialog. --- chart2/source/controller/main/ChartController_Insert.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chart2/source/controller/main/ChartController_Insert.cxx b/chart2/source/controller/main/ChartController_Insert.cxx index 4c63d3187aaf..09d8a6445b57 100644 --- a/chart2/source/controller/main/ChartController_Insert.cxx +++ b/chart2/source/controller/main/ChartController_Insert.cxx @@ -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() ) );