summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Francis <dennis.francis@collabora.co.uk>2017-08-08 17:17:46 +0530
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-08-23 23:57:34 +0200
commitafd5b4b7eda6171817f5fa1a426d4c11a1a734c9 (patch)
treef3bc298456c917958be2abcccb3c2cc6e86ac975
parent1b4c5f66083a92f4bfc9bd20a2a5b1e863ec84c1 (diff)
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 <ci@libreoffice.org> Reviewed-by: Dennis Francis <dennis.francis@collabora.co.uk> (cherry picked from commit b2cb3196868deb499bb91fc9bdbe6c8f7d1e9033) Reviewed-on: https://gerrit.libreoffice.org/41244 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
-rw-r--r--sc/source/ui/unoobj/chart2uno.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/ui/unoobj/chart2uno.cxx b/sc/source/ui/unoobj/chart2uno.cxx
index 432724da0b68..ae1f4f42b7a7 100644
--- a/sc/source/ui/unoobj/chart2uno.cxx
+++ b/sc/source/ui/unoobj/chart2uno.cxx
@@ -1892,9 +1892,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
{