summaryrefslogtreecommitdiff
path: root/drawinglayer/source/attribute/sdrlightingattribute3d.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'drawinglayer/source/attribute/sdrlightingattribute3d.cxx')
-rw-r--r--drawinglayer/source/attribute/sdrlightingattribute3d.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/drawinglayer/source/attribute/sdrlightingattribute3d.cxx b/drawinglayer/source/attribute/sdrlightingattribute3d.cxx
index 4f9b75cd1ff2..0f625756383c 100644
--- a/drawinglayer/source/attribute/sdrlightingattribute3d.cxx
+++ b/drawinglayer/source/attribute/sdrlightingattribute3d.cxx
@@ -140,7 +140,7 @@ namespace drawinglayer::attribute
const Sdr3DLightAttribute& rLight(rLightVector[a]);
const double fCosFac(rLight.getDirection().scalar(aEyeNormal));
- if(basegfx::fTools::more(fCosFac, 0.0))
+ if(fCosFac > 0.0)
{
aRetval += (rLight.getColor() * rColor) * fCosFac;
@@ -151,7 +151,7 @@ namespace drawinglayer::attribute
aSpecularNormal.normalize();
double fCosFac2(aSpecularNormal.scalar(aEyeNormal));
- if(basegfx::fTools::more(fCosFac2, 0.0))
+ if(fCosFac2 > 0.0)
{
fCosFac2 = pow(fCosFac2, static_cast<double>(nSpecularIntensity));
aRetval += rSpecular * fCosFac2;