Kaydet (Commit) a1b1c1eb authored tarafından Markus Mohrhard's avatar Markus Mohrhard

calculate color for color scales with more than 2 entries correctly

Change-Id: I5b62644df8742939551c1aaeaae1ebeda9b97f63
üst fdca7870
...@@ -297,13 +297,12 @@ Color* ScColorScaleFormat::GetColor( const ScAddress& rAddr ) const ...@@ -297,13 +297,12 @@ Color* ScColorScaleFormat::GetColor( const ScAddress& rAddr ) const
Color rColMax = itr->GetColor(); Color rColMax = itr->GetColor();
++itr; ++itr;
while(itr != end() && nVal > nValMin) while(itr != end() && nVal > nValMax)
{ {
rColMin = rColMax; rColMin = rColMax;
nValMin = nValMax; nValMin = nValMax;
rColMax = itr->GetColor(); rColMax = itr->GetColor();
nValMax = CalcValue(nMin, nMax, itr); nValMax = CalcValue(nMin, nMax, itr);
nValMax = itr->GetValue();
++itr; ++itr;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment