summaryrefslogtreecommitdiff
path: root/vcl/source/gdi/bitmap4.cxx
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2003-10-06 17:55:30 +0000
committerVladimir Glazounov <vg@openoffice.org>2003-10-06 17:55:30 +0000
commit7f5efb2799110cae3fd31f715013f7a6486d8acf (patch)
tree96a21c4e2deb80c2a3d02d1dbfd370a5ce60fa2b /vcl/source/gdi/bitmap4.cxx
parent0d2e089aca22a9051f17297bf36c670a8b8f4dae (diff)
INTEGRATION: CWS net2003 (1.2.288); FILE MERGED
2003/08/08 13:48:51 obo 1.2.288.1: #111136# .NET 2003
Diffstat (limited to 'vcl/source/gdi/bitmap4.cxx')
-rw-r--r--vcl/source/gdi/bitmap4.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/source/gdi/bitmap4.cxx b/vcl/source/gdi/bitmap4.cxx
index 9f55fe577742..e833229b18ef 100644
--- a/vcl/source/gdi/bitmap4.cxx
+++ b/vcl/source/gdi/bitmap4.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: bitmap4.cxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: hjs $ $Date: 2003-08-18 15:13:27 $
+ * last change: $Author: vg $ $Date: 2003-10-06 18:55:30 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -620,7 +620,7 @@ BOOL Bitmap::ImplEmbossGrey( const BmpFilterParam* pFilterParam, const Link* pPr
aGrey.SetIndex( 0 );
else
{
- const double fGrey = nDotL / sqrt( nNx * nNx + nNy * nNy + nZ2 );
+ const double fGrey = nDotL / sqrt( (double)(nNx * nNx + nNy * nNy + nZ2) );
aGrey.SetIndex( (BYTE) VOS_BOUND( fGrey, 0, 255 ) );
}