From: vsr Date: Tue, 8 Feb 2011 08:19:01 +0000 (+0000) Subject: Fix hang-up when displaying sphere in OCC viewer X-Git-Tag: Start_BR_19998_21191~71 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=cac1b61a47c2ccaa929ddc3474607fc7244fd829;p=modules%2Fgeom.git Fix hang-up when displaying sphere in OCC viewer --- diff --git a/src/GEOMGUI/GEOM_Displayer.cxx b/src/GEOMGUI/GEOM_Displayer.cxx index 15a8f75a4..69e82d6a7 100644 --- a/src/GEOMGUI/GEOM_Displayer.cxx +++ b/src/GEOMGUI/GEOM_Displayer.cxx @@ -1689,7 +1689,7 @@ PropMap GEOM_Displayer::getDefaultPropepryMap(const QString& viewer_type){ double aDC; //rnv: Currently deflection coefficient is not supported by VTK viewer. if(viewer_type == SOCC_Viewer::Type()) { - double aDC = aResMgr->doubleValue("Geometry", "deflection_coeff", 0.001); + aDC = aResMgr->doubleValue("Geometry", "deflection_coeff", 0.001); } else if( viewer_type==SVTK_Viewer::Type()) { aDC = 0.0; }