From: gdd Date: Wed, 21 Mar 2012 15:41:10 +0000 (+0000) Subject: In Extrusion dialog, the distance was troncated to the lower integer. With a distance... X-Git-Tag: V6_5_0a1~28 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=51949e5059e8f6c0b46be6caa2275c73d2e00e44;p=modules%2Fsmesh.git In Extrusion dialog, the distance was troncated to the lower integer. With a distance <1, the extrusion vector size was zero. --- diff --git a/src/SMESHGUI/SMESHGUI_ExtrusionDlg.cxx b/src/SMESHGUI/SMESHGUI_ExtrusionDlg.cxx index 482d5c8d6..f9c29e175 100644 --- a/src/SMESHGUI/SMESHGUI_ExtrusionDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_ExtrusionDlg.cxx @@ -1237,7 +1237,7 @@ void SMESHGUI_ExtrusionDlg::getExtrusionVector(SMESH::DirStruct& aVector) { aNormale /= aNormale.Modulus(); - long aVDist = (long)SpinBox_VDist->value(); + double aVDist = (double)SpinBox_VDist->value(); aVector.PS.x = aNormale.X()*aVDist; aVector.PS.y = aNormale.Y()*aVDist;