From b2cb3196868deb499bb91fc9bdbe6c8f7d1e9033 Mon Sep 17 00:00:00 2001 From: Dennis Francis Date: Tue, 8 Aug 2017 17:17:46 +0530 Subject: tdf#86019: Use ChartDataRowSource_COLUMNS as the chart... ...data row source if there is atleast a sequence along a column. Change-Id: I24838a704d31f83fa51efa2eb44b489affe86f35 Reviewed-on: https://gerrit.libreoffice.org/41202 Tested-by: Jenkins Reviewed-by: Dennis Francis --- sc/source/ui/unoobj/chart2uno.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sc/source/ui/unoobj/chart2uno.cxx b/sc/source/ui/unoobj/chart2uno.cxx index 5099a64fd54e..766fc7d17fb3 100644 --- a/sc/source/ui/unoobj/chart2uno.cxx +++ b/sc/source/ui/unoobj/chart2uno.cxx @@ -1891,9 +1891,9 @@ uno::Sequence< beans::PropertyValue > SAL_CALL ScChart2DataProvider::detectArgum if (!bRowSourceAmbiguous) { bRowSourceDetected = true; - eRowSource = ( nDataInRows > 0 - ? chart::ChartDataRowSource_ROWS - : chart::ChartDataRowSource_COLUMNS ); + eRowSource = ( nDataInCols > 0 + ? chart::ChartDataRowSource_COLUMNS + : chart::ChartDataRowSource_ROWS ); } else { -- cgit v1.2.3