]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix for Bug GVIEW10814
authorapo <apo@opencascade.com>
Fri, 16 Dec 2005 08:02:12 +0000 (08:02 +0000)
committerapo <apo@opencascade.com>
Fri, 16 Dec 2005 08:02:12 +0000 (08:02 +0000)
  size of the cursor is not modified when changing the magnification
(minor changes)

src/OBJECT/VISU_GaussPtsDeviceActor.cxx

index 8b780b10069cab393c9de1de8fb97b810ce55a2a..6a08df3c3ee5ea1b9a3c03a555958a7181196a26 100644 (file)
@@ -263,15 +263,10 @@ VISU_CursorPyramid
     aWorldClamp = sqrt(aWorldClamp);
     float aMDiameter = 2.0 * aMRadius;
     float aCoeff = aWorldClamp / aMDiameter;
-    float aMagnification = aWorldClamp / 2.0 / myRadius;
-    /*
-    cout<<"aMDiameter = "<<aMDiameter<<"; aCoeff = "<<aCoeff<<
-      "; myMagnification = "<<myMagnification<<"; aMagnification = "<<aMagnification<<endl;
-    */
+
     if(aCoeff < 1.0){
       this->SetScale(aCoeff);
-      if(aMagnification > myMagnification)
-       Init(myHeight/aCoeff,aMRadius);
+      //Init(myHeight/aCoeff,aMRadius*aCoeff);
     }
   }