refs #731: fix hanging of application after Undo operation during profile/polyline creation.

This commit is contained in:
mkr 2015-11-25 15:02:52 +03:00
parent 40d1576437
commit 610bd3aff0

View File

@ -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();