From 610bd3aff0e4c4838056a342f50f220bb62f8c61 Mon Sep 17 00:00:00 2001 From: mkr Date: Wed, 25 Nov 2015 15:02:52 +0300 Subject: [PATCH] refs #731: fix hanging of application after Undo operation during profile/polyline creation. --- src/CurveCreator/CurveCreator_Operation.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.39.2