From: mkr Date: Wed, 25 Nov 2015 12:02:52 +0000 (+0300) Subject: refs #731: fix hanging of application after Undo operation during profile/polyline... X-Git-Tag: V8_0_0a1~3^2~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=610bd3aff0e4c4838056a342f50f220bb62f8c61;p=modules%2Fgeom.git refs #731: fix hanging of application after Undo operation during profile/polyline creation. --- diff --git a/src/CurveCreator/CurveCreator_Operation.cxx b/src/CurveCreator/CurveCreator_Operation.cxx index 32d29697e..17c278a97 100644 --- a/src/CurveCreator/CurveCreator_Operation.cxx +++ b/src/CurveCreator/CurveCreator_Operation.cxx @@ -341,7 +341,7 @@ void CurveCreator_Operation::apply(CurveCreator_Curve *theCurve) int nbPoints = pInt[0]; int nbCoords = pInt[1]; - int nbParams = 3+nbCoords; + int nbParams = 3+nbCoords*sizeof(double)/sizeof(int); for (int i = 0; i < nbPoints*nbParams; i=i+nbParams) { aCoords.clear(); aPoints.clear();