From 3b7c450c5c69e54bd23144b650f9400f9582c2d8 Mon Sep 17 00:00:00 2001 From: RĂ¼diger Timm Date: Wed, 8 Sep 2004 14:27:46 +0000 Subject: INTEGRATION: CWS ooo20040704 (1.2.50); FILE MERGED 2004/07/03 00:55:17 waratah 1.2.50.1: #i30874# Add initial values to potentially uninitialised values --- goodies/source/base3d/b3dtrans.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/goodies/source/base3d/b3dtrans.cxx b/goodies/source/base3d/b3dtrans.cxx index d93612c5d6bf..2c5c80e37107 100644 --- a/goodies/source/base3d/b3dtrans.cxx +++ b/goodies/source/base3d/b3dtrans.cxx @@ -2,9 +2,9 @@ * * $RCSfile: b3dtrans.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: rt $ $Date: 2003-12-01 17:56:13 $ + * last change: $Author: rt $ $Date: 2004-09-08 15:27:46 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -256,11 +256,12 @@ void B3dTransformationSet::CalcViewport() // Berechne aktuelles Seitenverhaeltnis der Bounds double fBoundWidth = (double)(aViewportRectangle.GetWidth() + 1); double fBoundHeight = (double)(aViewportRectangle.GetHeight() + 1); - double fActRatio; + double fActRatio = 1; double fFactor; if(fBoundWidth != 0.0) fActRatio = fBoundHeight / fBoundWidth; + // FIXME else in this case has a lot of problems, should this return. switch(eRatio) { -- cgit