]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
BugID: PAL9884, Modified a method CreateDatasetFromASCII. TG-Start-D5-38-2003
authorsrn <srn@opencascade.com>
Mon, 12 Sep 2005 08:51:32 +0000 (08:51 +0000)
committersrn <srn@opencascade.com>
Mon, 12 Sep 2005 08:51:32 +0000 (08:51 +0000)
src/HDFPersist/HDFascii.cc

index 186d2bcd06fb00d3c5d9ac7d0b44e51c60cd0371..54577e068aa526121294237f31a6b79e80be638a 100644 (file)
@@ -516,8 +516,10 @@ bool CreateDatasetFromASCII(HDFcontainerObject *father, FILE *fp)
   fscanf(fp, "%i\n", &nbDim);
 
   hdf_size* sizeArray = new hdf_size[nbDim];
+  int dim = 0;
   for(i = 0; i<nbDim; i++) {
-    fscanf(fp, "%i\n", &(sizeArray[i]));
+    fscanf(fp, "%i\n", &dim);
+    sizeArray[i] = dim;
   }
  
   HDFdataset* hdf_dataset = new HDFdataset(new_name, father,type, sizeArray, nbDim);