From 268fe75e3326d7f2d105c9b915c82f9e6f510348 Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Sun, 31 Jul 2011 17:52:07 +0200 Subject: Some cppcheck cleaning --- drawinglayer/source/primitive3d/sdrextrudeprimitive3d.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'drawinglayer/source/primitive3d') diff --git a/drawinglayer/source/primitive3d/sdrextrudeprimitive3d.cxx b/drawinglayer/source/primitive3d/sdrextrudeprimitive3d.cxx index b33bb0038a43..8cedcd107777 100644 --- a/drawinglayer/source/primitive3d/sdrextrudeprimitive3d.cxx +++ b/drawinglayer/source/primitive3d/sdrextrudeprimitive3d.cxx @@ -67,7 +67,6 @@ namespace drawinglayer const bool bCreateNormals(::com::sun::star::drawing::NormalsKind_SPECIFIC == eNormalsKind); const bool bCreateTextureCoordiantesX(::com::sun::star::drawing::TextureProjectionMode_OBJECTSPECIFIC == getSdr3DObjectAttribute().getTextureProjectionX()); const bool bCreateTextureCoordiantesY(::com::sun::star::drawing::TextureProjectionMode_OBJECTSPECIFIC == getSdr3DObjectAttribute().getTextureProjectionY()); - double fRelativeTextureWidth(1.0); basegfx::B2DHomMatrix aTexTransform; if(!getSdrLFSAttribute().getFill().isDefault() && (bCreateTextureCoordiantesX || bCreateTextureCoordiantesY)) @@ -76,7 +75,7 @@ namespace drawinglayer const double fFrontLength(basegfx::tools::getLength(aFirstPolygon)); const double fFrontArea(basegfx::tools::getArea(aFirstPolygon)); const double fSqrtFrontArea(sqrt(fFrontArea)); - fRelativeTextureWidth = basegfx::fTools::equalZero(fSqrtFrontArea) ? 1.0 : fFrontLength / fSqrtFrontArea; + double fRelativeTextureWidth = basegfx::fTools::equalZero(fSqrtFrontArea) ? 1.0 : fFrontLength / fSqrtFrontArea; fRelativeTextureWidth = (double)((sal_uInt32)(fRelativeTextureWidth - 0.5)); if(fRelativeTextureWidth < 1.0) -- cgit