diff options
author | Noel Grandin <noel@peralex.com> | 2016-01-25 13:33:39 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-01-28 06:44:39 +0000 |
commit | c06238f28209402a9cbcc2471dd713de0db0fb4b (patch) | |
tree | 664de4b72d51f792eff60b009a85d7c9597b0ca1 /svx/source/toolbars | |
parent | 556ce647aacc635ea05bd6d6e030d93d341b5624 (diff) |
loplugin:fpcomparison in svx/
Change-Id: I636dcdd51389f31eeb14cd1eb9a82a89599d3eea
Reviewed-on: https://gerrit.libreoffice.org/21777
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'svx/source/toolbars')
-rw-r--r-- | svx/source/toolbars/extrusionbar.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/svx/source/toolbars/extrusionbar.cxx b/svx/source/toolbars/extrusionbar.cxx index b364f051daa4..de176d908742 100644 --- a/svx/source/toolbars/extrusionbar.cxx +++ b/svx/source/toolbars/extrusionbar.cxx @@ -748,16 +748,16 @@ void getExtrusionDirectionState( SdrView* pSdrView, SfxItemSet& rSet ) } } - if( fFinalSkewAngle == -1.0 ) + if( rtl::math::approxEqual(fFinalSkewAngle, -1.0) ) { fFinalSkewAngle = fSkewAngle; } - else if( fSkewAngle != fFinalSkewAngle ) + else if( !rtl::math::approxEqual(fSkewAngle, fFinalSkewAngle) ) { fFinalSkewAngle = -1.0; } - if( fFinalSkewAngle == -1.0 ) + if( rtl::math::approxEqual(fFinalSkewAngle, -1.0) ) break; } } @@ -956,7 +956,7 @@ void getExtrusionDepthState( SdrView* pSdrView, SfxItemSet& rSet ) { fFinalDepth = fDepth; } - else if( fFinalDepth != fDepth ) + else if( !rtl::math::approxEqual(fFinalDepth, fDepth) ) { fFinalDepth = -1; break; |