kbrown / rpms / libreoffice

Forked from rpms/libreoffice 2 years ago
Clone

Blame SOURCES/0017-fix-validation-error-for-OOXML-chart-export-related-.patch

f0633d
From 90674ac8a975b16389d9b32016f3ef605a702079 Mon Sep 17 00:00:00 2001
f0633d
From: Markus Mohrhard <markus.mohrhard@googlemail.com>
f0633d
Date: Sun, 1 Dec 2013 04:19:09 +0100
f0633d
Subject: [PATCH 017/109] fix validation error for OOXML chart export, related
f0633d
 fdo#67300
f0633d
f0633d
Change-Id: I7d74439bba3b912fe9b81ebeca865298bc32d71e
f0633d
Reviewed-on: https://gerrit.libreoffice.org/6879
f0633d
Reviewed-by: Andras Timar <andras.timar@collabora.com>
f0633d
Tested-by: Andras Timar <andras.timar@collabora.com>
f0633d
---
f0633d
 oox/source/export/chartexport.cxx | 7 +++++--
f0633d
 1 file changed, 5 insertions(+), 2 deletions(-)
f0633d
f0633d
diff --git a/oox/source/export/chartexport.cxx b/oox/source/export/chartexport.cxx
f0633d
index b654001..e6da04b 100644
f0633d
--- a/oox/source/export/chartexport.cxx
f0633d
+++ b/oox/source/export/chartexport.cxx
f0633d
@@ -1277,8 +1277,11 @@ void ChartExport::exportPieChart( Reference< chart2::XChartType > xChartType )
f0633d
     sal_Int32 nAttachedAxis = AXIS_PRIMARY_Y;
f0633d
     exportSeries( xChartType, nAttachedAxis );
f0633d
 
f0633d
-    // firstSliceAng
f0633d
-    exportFirstSliceAng( );
f0633d
+    if( !mbIs3DChart )
f0633d
+    {
f0633d
+        // firstSliceAng
f0633d
+        exportFirstSliceAng( );
f0633d
+    }
f0633d
 
f0633d
     pFS->endElement( FSNS( XML_c, nTypeId ) );
f0633d
 }
f0633d
-- 
f0633d
1.8.4.2
f0633d