View | Details | Raw Unified | Return to issue 122822
Collapse All | Expand All

(-)file_not_specified_in_diff (-11 / +12 lines)
Line  Link Here
0
-- main/sc/source/ui/unoobj/chart2uno.cxx
0
++ main/sc/source/ui/unoobj/chart2uno.cxx
Lines 3035-3065 uno::Sequence< double > SAL_CALL ScChart2DataSequence::getNumericalData() Link Here
3035
        }
3035
        }
3036
        else
3036
        else
3037
        {
3037
        {
3038
            sal_Int32 nMax = 0, nMin = 0, nMaxStep = 0, nMinStep = 0;
3038
            double fMax = 0, fMin = 0;
3039
            int nMaxStep = -1, nMinStep = -1;
3039
            for (sal_Int32 j = 0; j < nStep; j++)
3040
            for (sal_Int32 j = 0; j < nStep; j++)
3040
            {
3041
            {
3041
                sal_Int32 nValue = itr->mbIsValue ? itr->mfValue : fNAN;
3042
                const double fValue = itr->mbIsValue ? itr->mfValue : fNAN;
3042
                if (nValue > nMax)
3043
                if( (fMax < fValue) || (nMaxStep < 0))
3043
                {
3044
                {
3044
                    nMax = nValue;
3045
                    fMax = fValue;
3045
                    nMaxStep = j;
3046
                    nMaxStep = j;
3046
                }
3047
                }
3047
                if (nValue < nMin)
3048
                if( (fMin > fValue) || (nMinStep < 0))
3048
                {
3049
                {
3049
                    nMin = nValue;
3050
                    fMin = fValue;
3050
                    nMinStep = j;
3051
                    nMinStep = j;
3051
                }
3052
                }
3052
                itr++;
3053
                itr++;
3053
            }
3054
            }
3054
            if (nMaxStep > nMinStep)
3055
            if (nMaxStep > nMinStep)
3055
            {
3056
            {
3056
                *pArr++ = nMin;
3057
                *(pArr++) = fMin;
3057
                *pArr++ = nMax;
3058
                *(pArr++) = fMax;
3058
            }
3059
            }
3059
            else
3060
            else
3060
            {
3061
            {
3061
                *pArr++ = nMax;
3062
                *(pArr++) = fMax;
3062
                *pArr++ = nMin;
3063
                *(pArr++) = fMin;
3063
            }
3064
            }
3064
        }
3065
        }
3065
    }
3066
    }

Return to issue 122822