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

Katarina Behrens bubli at bubli.org
Thu Feb 5 14:05:08 PST 2015


 sc/source/filter/oox/condformatbuffer.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 076b098ddf80fc78773d3ed97b7fd50dbcb4ebb6
Author: Katarina Behrens <bubli at bubli.org>
Date:   Thu Feb 5 22:56:52 2015 +0100

    Related tdf#87356: import data bar [non-]gradient from OOXML
    
    Strange, I somehow believed this already works not only for ODF
    but also for OOXML. Wasn't the case
    
    Change-Id: I5e06fd7bccbe2e59b13f9f56188374193b10a009

diff --git a/sc/source/filter/oox/condformatbuffer.cxx b/sc/source/filter/oox/condformatbuffer.cxx
index 3deec93..34519f1 100644
--- a/sc/source/filter/oox/condformatbuffer.cxx
+++ b/sc/source/filter/oox/condformatbuffer.cxx
@@ -1111,7 +1111,10 @@ void ExtCfRule::finalizeImport()
                 pDataBar->meAxisPosition = databar::MIDDLE;
             else
                 pDataBar->meAxisPosition = databar::AUTOMATIC;
+            // TODO: the following line makes very little sense, figure out
+            // how it used to be (XML_negativeBarColorSameAsPositive)
             pDataBar->mbNeg = !maModel.mbGradient;
+            pDataBar->mbGradient = maModel.mbGradient;
             break;
         }
         case AXISCOLOR:


More information about the Libreoffice-commits mailing list