[Libreoffice-commits] core.git: oox/source

Bartosz Kosiorek gang65 at poczta.onet.pl
Mon Feb 19 20:20:08 UTC 2018


 oox/source/export/chartexport.cxx |   18 ++++++++++++------
 1 file changed, 12 insertions(+), 6 deletions(-)

New commits:
commit ff63bae0133e3b90b32af88a4307fb4f5dafd95f
Author: Bartosz Kosiorek <gang65 at poczta.onet.pl>
Date:   Sun Feb 18 22:12:29 2018 +0100

    Add export of the side wall for 3D chart, during .xlsx export
    
    LibreOffice doens't distinguish between sideWall and backWall.
    It is controlled by the same Wall property.
    
    Change-Id: If1919cf0a9bad3e80544cc5b2ae0f40f606febeb
    Reviewed-on: https://gerrit.libreoffice.org/49429
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Bartosz Kosiorek <gang65 at poczta.onet.pl>

diff --git a/oox/source/export/chartexport.cxx b/oox/source/export/chartexport.cxx
index cb4994aa89be..085427e803bb 100644
--- a/oox/source/export/chartexport.cxx
+++ b/oox/source/export/chartexport.cxx
@@ -738,15 +738,21 @@ void ChartExport::exportChart( const Reference< css::chart::XChartDocument >& xC
             pFS->endElement( FSNS( XML_c, XML_floor ) );
         }
 
-        // sideWall
-
-        // backWall
-        Reference< beans::XPropertySet > xBackWall( mxNewDiagram->getWall(), uno::UNO_QUERY );
-        if( xBackWall.is() )
+        // LibreOffice doens't distinguish between sideWall and backWall (both are using the same color).
+        // It is controlled by the same Wall property.
+        Reference< beans::XPropertySet > xWall( mxNewDiagram->getWall(), uno::UNO_QUERY );
+        if( xWall.is() )
         {
+            // sideWall
+            pFS->startElement( FSNS( XML_c, XML_sideWall ),
+                FSEND );
+            exportShapeProps( xWall );
+            pFS->endElement( FSNS( XML_c, XML_sideWall ) );
+
+            // backWall
             pFS->startElement( FSNS( XML_c, XML_backWall ),
                 FSEND );
-            exportShapeProps( xBackWall );
+            exportShapeProps( xWall );
             pFS->endElement( FSNS( XML_c, XML_backWall ) );
         }
 


More information about the Libreoffice-commits mailing list