summaryrefslogtreecommitdiff
path: root/writerfilter
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-08-09 12:43:00 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-08-10 12:13:26 +0100
commit758b5173993bc782e0759fb4db81bd9696e4b546 (patch)
treedc922b3d42977143b5f306c75fe463f1da24696c /writerfilter
parent8bc5b7a41f290ab4cc999cddf5d578843559ad1f (diff)
cppcheck: zerodiv
Change-Id: Iaf327051d59c39cbd61e1a64bdf1ee5af5cc4f3b
Diffstat (limited to 'writerfilter')
-rw-r--r--writerfilter/source/dmapper/DomainMapper_Impl.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/writerfilter/source/dmapper/DomainMapper_Impl.cxx b/writerfilter/source/dmapper/DomainMapper_Impl.cxx
index ad96b2d5a87a..3f0e6a3472f0 100644
--- a/writerfilter/source/dmapper/DomainMapper_Impl.cxx
+++ b/writerfilter/source/dmapper/DomainMapper_Impl.cxx
@@ -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);