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

little refactoring in databar code

Change-Id: Icf2943604106440ff0b1979ebe10497f01fea784
üst 598f0e26
......@@ -890,13 +890,12 @@ ScDataBarInfo* ScDataBarFormat::GetDataBarInfo(const ScAddress& rAddr) const
}
pInfo->mnZero = 0;
}
else
else if (mpFormatData->meAxisPosition == databar::AUTOMATIC)
{
double nMinPositive = 0;
double nMaxNegative = 0;
double nMinPositive = 0;
//calculate the zero position first
if(mpFormatData->meAxisPosition == databar::AUTOMATIC)
{
if(nMin < 0)
{
if(nMax < 0)
......@@ -951,7 +950,6 @@ ScDataBarInfo* ScDataBarFormat::GetDataBarInfo(const ScAddress& rAddr) const
pInfo->mnLength = nMaxLength * (nValue/nAbsMax);
}
}
}
// set color
if(mpFormatData->mbNeg && nValue < 0)
......
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