]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
refs #731: fix hanging of application after Undo operation during profile/polyline...
authormkr <mkr@opencascade.com>
Wed, 25 Nov 2015 12:02:52 +0000 (15:02 +0300)
committermkr <mkr@opencascade.com>
Wed, 25 Nov 2015 12:02:52 +0000 (15:02 +0300)
src/CurveCreator/CurveCreator_Operation.cxx

index 32d29697e220ecb49af815383f7d40c6c73de2eb..17c278a979bd5e0bf31a2cd1d522066e6620887e 100644 (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();