diff options
author | Katarina Behrens <bubli@bubli.org> | 2015-02-10 22:46:24 +0100 |
---|---|---|
committer | Katarina Behrens <bubli@bubli.org> | 2015-02-10 23:02:05 +0100 |
commit | 317967af601797b3b1193db691330fcf6cb100e5 (patch) | |
tree | 0587861cb1b45948cb09201e6249ea84c233c77d /sc | |
parent | 61b8596f1114d7b9b6ebcaedf125eeb8821d2c9f (diff) |
mbNeg means: a different colour for negative values is defined
It is totally orthogonal to whether there's a gradient fill or not
Change-Id: I32ab465d9116c3dc31cde3611cd19d3ec10ac5d6
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/filter/oox/condformatbuffer.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sc/source/filter/oox/condformatbuffer.cxx b/sc/source/filter/oox/condformatbuffer.cxx index 34519f142d73..a984202a50cd 100644 --- a/sc/source/filter/oox/condformatbuffer.cxx +++ b/sc/source/filter/oox/condformatbuffer.cxx @@ -1111,9 +1111,6 @@ 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; } @@ -1171,6 +1168,7 @@ void ExtCfRule::importNegativeFillColor( const AttributeList& rAttribs ) { mnRuleType = NEGATIVEFILLCOLOR; maModel.mnNegativeColor = rAttribs.getIntegerHex( XML_rgb, API_RGB_TRANSPARENT ); + maModel.mbNeg = true; } void ExtCfRule::importAxisColor( const AttributeList& rAttribs ) |