diff --git a/drawinglayer/source/primitive2d/borderlineprimitive2d.cxx b/drawinglayer/source/primitive2d/borderlineprimitive2d.cxx index 3ea94f1aefbb..79e34ec972ce 100644 --- a/drawinglayer/source/primitive2d/borderlineprimitive2d.cxx +++ b/drawinglayer/source/primitive2d/borderlineprimitive2d.cxx @@ -331,7 +331,7 @@ namespace drawinglayer::primitive2d // direction has to be equal -> cross product == 0.0 const basegfx::B2DVector aVT(pCandidateA->getEnd() - pCandidateA->getStart()); const basegfx::B2DVector aVC(pCandidateB->getEnd() - pCandidateB->getStart()); - if(!rtl::math::approxEqual(0.0, aVC.cross(aVT))) + if(aVC.cross(aVT) != 0) { return Primitive2DReference(); } diff --git a/vcl/source/outdev/bitmapex.cxx b/vcl/source/outdev/bitmapex.cxx index 04a50d554570..defabf09b8fd 100644 --- a/vcl/source/outdev/bitmapex.cxx +++ b/vcl/source/outdev/bitmapex.cxx @@ -459,7 +459,7 @@ void OutputDevice::DrawTransformedBitmapEx( if(rBitmapEx.IsEmpty()) return; - if(rtl::math::approxEqual( fAlpha, 0.0 )) + if( fAlpha == 0.0 ) return; // MM02 compared to other public methods of OutputDevice