diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2015-05-17 03:07:30 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2015-05-17 06:48:24 +0200 |
commit | a8fc28682da6223520706f990598f58362fad9d5 (patch) | |
tree | 02344b35b26a5f910733857a9cd3ddb6de8ff184 /sc | |
parent | de72cead8f8f9e20302b8aa2d174c2359260d1a2 (diff) |
another databar length calculation bug
Change-Id: I164e1da11fe43b87c9fba32249439cbce860da6a
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/colorscale.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sc/source/core/data/colorscale.cxx b/sc/source/core/data/colorscale.cxx index d9876eba0b9f..2369bac99450 100644 --- a/sc/source/core/data/colorscale.cxx +++ b/sc/source/core/data/colorscale.cxx @@ -924,6 +924,8 @@ ScDataBarInfo* ScDataBarFormat::GetDataBarInfo(const ScAddress& rAddr) const { if ( nValue > nMax ) pInfo->mnLength = 100; + else if (nValue <= nMin) + pInfo->mnLength = 0; else pInfo->mnLength = 100 * (nValue-nMin)/(nMax-nMin); } |