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

cppcheck: zerodiv

Change-Id: Iaf327051d59c39cbd61e1a64bdf1ee5af5cc4f3b
üst 8bc5b7a4
......@@ -3670,7 +3670,7 @@ void DomainMapper_Impl::CloseFieldCommand()
PropertyMapPtr pCharContext = GetTopContext();
// dHeight is the font size of the current style.
double dHeight = 0;
if (GetPropertyFromStyleSheet(PROP_CHAR_HEIGHT) >>= dHeight)
if ((GetPropertyFromStyleSheet(PROP_CHAR_HEIGHT) >>= dHeight) && dHeight != 0)
// Character escapement should be given in negative percents for subscripts.
pCharContext->Insert(PROP_CHAR_ESCAPEMENT, uno::makeAny( sal_Int16(- 100 * nDown / dHeight) ) );
appendTextPortion(aContent, pCharContext);
......
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