From 51949e5059e8f6c0b46be6caa2275c73d2e00e44 Mon Sep 17 00:00:00 2001 From: gdd Date: Wed, 21 Mar 2012 15:41:10 +0000 Subject: [PATCH] In Extrusion dialog, the distance was troncated to the lower integer. With a distance <1, the extrusion vector size was zero. --- src/SMESHGUI/SMESHGUI_ExtrusionDlg.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2