]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Minor changes
authorapo <apo@opencascade.com>
Fri, 9 Sep 2005 05:49:02 +0000 (05:49 +0000)
committerapo <apo@opencascade.com>
Fri, 9 Sep 2005 05:49:02 +0000 (05:49 +0000)
src/VVTK/VVTK_View.cxx

index a28940c49d34028c783abbf7d403215f2782b1d7..effb4637030be127da95a4a18d3be5d8da8c142c 100644 (file)
@@ -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);
 }