X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FCurveCreator%2FCurveCreator_Operation.cxx;h=81f776f742da4f137582f1365b3b7218ed16c3c7;hb=a5ebfce8d10046ef0a02e8bc3cce9e3261d5ff64;hp=32d29697e220ecb49af815383f7d40c6c73de2eb;hpb=9680031be017f475ebb1d506a72b9527f5ce70b3;p=modules%2Fgeom.git diff --git a/src/CurveCreator/CurveCreator_Operation.cxx b/src/CurveCreator/CurveCreator_Operation.cxx index 32d29697e..81f776f74 100644 --- a/src/CurveCreator/CurveCreator_Operation.cxx +++ b/src/CurveCreator/CurveCreator_Operation.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2013-2015 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2013-2016 CEA/DEN, EDF R&D, OPEN CASCADE // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -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();