From: apo Date: Fri, 9 Sep 2005 05:49:02 +0000 (+0000) Subject: Minor changes X-Git-Tag: BR-D5-38-2003_D2005-12-09~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ee98088e5fe7b89b09ef6f80b139572bd7d5e7c9;p=modules%2Fvisu.git Minor changes --- 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); }