Kaydet (Commit) fb5a2291 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1228873 Division or modulo by float zero

Change-Id: Iffd200c6a7028206d91c036cc3a726ad19bd5bc8
üst 28b98516
......@@ -633,7 +633,7 @@ uno::Reference< text::XTextColumns > SectionPropertyMap::ApplyColumnProperties(
}
sal_Int32 nRefValue = xColumns->getReferenceValue();
double fRel = double( nRefValue ) / double( nColSum );
double fRel = nColSum ? double( nRefValue ) / double( nColSum ) : 0.0;
uno::Sequence< text::TextColumn > aColumns( m_nColumnCount + 1 );
text::TextColumn* pColumn = aColumns.getArray();
......
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