]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix for the bug "IPAL22873: Export table into csv format - first column with abscissa... V6_main_20120405
authorana <ana@opencascade.com>
Thu, 29 Mar 2012 12:38:39 +0000 (12:38 +0000)
committerana <ana@opencascade.com>
Thu, 29 Mar 2012 12:38:39 +0000 (12:38 +0000)
src/VISU_I/VISU_Table_i.cc

index bf18fa0580758eccc7badbaf991f8cdeafa75726..e19f6e6c8ce5df2ae88766eb00be57bc76efbc33 100644 (file)
@@ -1940,7 +1940,7 @@ template<class TTableAttr> bool ExportTableToFile(const TTableAttr& aTabAttr,
     QString aValue;
     for (int j = 1; j <= aColNb; j++) {
       QString aLine = "";
-      if(aTabAttr->HasValue(j,1)) {
+      if(aTabAttr->HasValue(1,j)) {
         aLine = aValue.sprintf("%.16g",(double)aTabAttr->GetValue(1,j));
       }
       for (int i = 2; i <= aRowsNb; i++) {