sc/source/ui/unoobj/chart2uno.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit afd5b4b7eda6171817f5fa1a426d4c11a1a734c9
Author: Dennis Francis <dennis.fran...@collabora.co.uk>
Date:   Tue Aug 8 17:17:46 2017 +0530

    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 <c...@libreoffice.org>
    Reviewed-by: Dennis Francis <dennis.fran...@collabora.co.uk>
    (cherry picked from commit b2cb3196868deb499bb91fc9bdbe6c8f7d1e9033)
    Reviewed-on: https://gerrit.libreoffice.org/41244
    Reviewed-by: Markus Mohrhard <markus.mohrh...@googlemail.com>

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
         {
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to