From ee98088e5fe7b89b09ef6f80b139572bd7d5e7c9 Mon Sep 17 00:00:00 2001 From: apo Date: Fri, 9 Sep 2005 05:49:02 +0000 Subject: [PATCH] Minor changes --- src/VVTK/VVTK_View.cxx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/VVTK/VVTK_View.cxx b/src/VVTK/VVTK_View.cxx index a28940c4..effb4637 100644 --- a/src/VVTK/VVTK_View.cxx +++ b/src/VVTK/VVTK_View.cxx @@ -105,13 +105,13 @@ VVTK_MainWindow ::sizeHint() const { QWidget* aParent = parentWidget(); - if(myIsBase){ - static float aCoeff = 2.0/3.0; - return QSize(aCoeff*aParent->width(),aCoeff*aParent->height()); - }else{ - static float aCoeff = 1.0/3.0; - return QSize(aCoeff*aParent->width(),aCoeff*aParent->height()); - } + float aCoeff = 2.0/3.0; + if(!myIsBase) + aCoeff = 1.0/3.0; + + int aWidth = int(aCoeff*aParent->width()); + int aHeight = int(aCoeff*aParent->height()); + return QSize(aWidth,aHeight); } -- 2.39.2