diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-11-20 14:42:31 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-11-20 22:10:43 +0100 |
commit | 78ecfa8aafea457d29e1c5f327b75e14ae0b70ce (patch) | |
tree | b6e13075e2e21cd59653bec331ae7099dd88f158 /svx/source | |
parent | e086b54807f2cf65080398052e387ad1bee0f3bf (diff) |
ofz#4338 Integer-overflow
Change-Id: I6019da51dced0ef560490b7e7cf303b8193f17ce
Reviewed-on: https://gerrit.libreoffice.org/44971
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svx/source')
-rw-r--r-- | svx/source/customshapes/EnhancedCustomShape2d.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/customshapes/EnhancedCustomShape2d.cxx b/svx/source/customshapes/EnhancedCustomShape2d.cxx index e39e85e7fa05..51c11848de67 100644 --- a/svx/source/customshapes/EnhancedCustomShape2d.cxx +++ b/svx/source/customshapes/EnhancedCustomShape2d.cxx @@ -882,11 +882,11 @@ double EnhancedCustomShape2d::GetEquationValueAsDouble( const sal_Int32 nIndex ) fNumber = aResult.fValue = (*vNodesSharedPtr[ nIndex ])(); aResult.bReady = true; - if ( !rtl::math::isFinite( fNumber ) ) - fNumber = 0.0; SAL_INFO("svx", "equation " << nLevel << " (level: " << seqEquations[nIndex] << "): " << fNumber << " --> " << 180.0*fNumber/10800000.0); } + if ( !rtl::math::isFinite( fNumber ) ) + fNumber = 0.0; } catch ( ... ) { |