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

(-)source/view/main/VDataSeries.cxx (-2 / +2 lines)
Lines 142-149 Link Here
142
142
143
void lcl_maybeReplaceNanWithZero( double& rfValue, sal_Int32 nMissingValueTreatment )
143
void lcl_maybeReplaceNanWithZero( double& rfValue, sal_Int32 nMissingValueTreatment )
144
{
144
{
145
    if( nMissingValueTreatment == ::com::sun::star::chart::MissingValueTreatment::USE_ZERO
145
    if( (nMissingValueTreatment == ::com::sun::star::chart::MissingValueTreatment::USE_ZERO
146
        && ::rtl::math::isNan(rfValue) || ::rtl::math::isInf(rfValue) )
146
        && ::rtl::math::isNan(rfValue)) || ::rtl::math::isInf(rfValue) )
147
            rfValue = 0.0;
147
            rfValue = 0.0;
148
}
148
}
149
149

Return to issue 103713