summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKatarina Behrens <bubli@bubli.org>2015-02-05 22:56:52 +0100
committerKatarina Behrens <bubli@bubli.org>2015-02-05 23:04:01 +0100
commit076b098ddf80fc78773d3ed97b7fd50dbcb4ebb6 (patch)
treed6c9841aaea1f631d01bd52b4492ed639b829b7f
parent7129176134ac136fc38aa1b49f1d65c836af3d2c (diff)
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
-rw-r--r--sc/source/filter/oox/condformatbuffer.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/source/filter/oox/condformatbuffer.cxx b/sc/source/filter/oox/condformatbuffer.cxx
index 3deec936c4ba..34519f142d73 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: