summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Francis <dennis.francis@collabora.co.uk>2017-08-08 17:17:46 +0530
committerDennis Francis <dennis.francis@collabora.co.uk>2017-08-17 07:36:51 +0200
commitb2cb3196868deb499bb91fc9bdbe6c8f7d1e9033 (patch)
treea90caa36b7013f3768bd8751fef5d9b47ad6af93
parent791f93e01a847f475cd3f1ad5bf947ee1a45314e (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>
-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 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
{