summaryrefslogtreecommitdiff
path: root/goodies/source
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2004-09-08 14:27:46 +0000
committerRüdiger Timm <rt@openoffice.org>2004-09-08 14:27:46 +0000
commit3b7c450c5c69e54bd23144b650f9400f9582c2d8 (patch)
tree818ed9c02f470f8c2a57e34ec7718c200b028e8e /goodies/source
parent0e4f51331e2e7ca618f5abf52f9e05fa8ba0976d (diff)
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
Diffstat (limited to 'goodies/source')
-rw-r--r--goodies/source/base3d/b3dtrans.cxx7
1 files 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)
{