xmloff/source/chart/SchXMLTableContext.cxx |   10 ++++++++++
 1 file changed, 10 insertions(+)

New commits:
commit 91ca3a92c54a08ad13497d7e8ac1916e7b68bbfd
Author: Kohei Yoshida <kohei.yosh...@collabora.com>
Date:   Thu Jun 5 15:02:48 2014 -0400

    fdo#72727: Revert "fdo#68663 don't blindly force categories when there are 
none"
    
    This reverts commit b090cbdf82e0827234caf5969124f6631311ef35.

diff --git a/xmloff/source/chart/SchXMLTableContext.cxx 
b/xmloff/source/chart/SchXMLTableContext.cxx
index e072ded..48936b3 100644
--- a/xmloff/source/chart/SchXMLTableContext.cxx
+++ b/xmloff/source/chart/SchXMLTableContext.cxx
@@ -942,6 +942,16 @@ void 
SchXMLTableHelper::switchRangesFromOuterToInternalIfNecessary(
         }
     }
 
+    // there exist files with own data without a categories element but with 
row
+    // descriptions.  The row descriptions were used as categories even without
+    // the categories element
+    if( ! bCategoriesApplied )
+    {
+        SchXMLTools::CreateCategories(
+            xDataProv, xChartDoc, OUString("categories"),
+            0 /* nCooSysIndex */, 0 /* nDimension */ );
+    }
+
     //i91578 display of hidden values (copy paste scenario; use hidden flag 
during migration to locale table upon paste )
     //remove series that consist only of hidden columns
     Reference< chart2::XInternalDataProvider > xInternalDataProvider( 
xDataProv, uno::UNO_QUERY );
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to