[Libreoffice-commits] .: sc/source

Markus Mohrhard mmohrhard at kemper.freedesktop.org
Thu May 10 16:24:31 PDT 2012


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

New commits:
commit d0e4d1f397e9302aeb32aa7590292d9b86fe954b
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date:   Fri May 11 01:22:12 2012 +0200

    map percentile and percent into the same element
    
    This is most likely wrong but I have not yet an idea what should be the
    difference between these two.
    
    Change-Id: I3ee87de8d3b3f9a495ee653576a533690d66a3d0

diff --git a/sc/source/filter/oox/condformatbuffer.cxx b/sc/source/filter/oox/condformatbuffer.cxx
index 89ba949..bce9ed4 100644
--- a/sc/source/filter/oox/condformatbuffer.cxx
+++ b/sc/source/filter/oox/condformatbuffer.cxx
@@ -172,8 +172,14 @@ void ColorScaleRule::importCfvo( const AttributeList& rAttribs )
     {
         maColorScaleRuleEntries[mnCfvo].mbMax = true;
     }
+    else if( aType == "percent" )
+    {
+        maColorScaleRuleEntries[mnCfvo].mbPercent = true;
+    }
     else if( aType == "percentile" )
     {
+        // this is most likely wrong but I have no idea what the difference
+        // between percent and percentile should be when calculating colors
         maColorScaleRuleEntries[mnCfvo].mbPercent = true;
     }
 


More information about the Libreoffice-commits mailing list