]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Issue "0021407: [CEA 515] Plot2d Display error labels around the point" ignore error... V6_main_20120202 V6_main_20120203 V6_main_20120207 V6_main_20120208 V6_main_20120209 V6_main_20120213 V6_main_20120215 V6_main_20120216 V6_main_20120220
authorrnv <rnv@opencascade.com>
Wed, 1 Feb 2012 12:51:33 +0000 (12:51 +0000)
committerrnv <rnv@opencascade.com>
Wed, 1 Feb 2012 12:51:33 +0000 (12:51 +0000)
src/VISUGUI/VisuGUI_SetupPlot2dDlg.cxx

index c17c910435b2cebec8491881bd2856e4f2d529b4..5e877db0654f85b7000a5d6cb81373bdaf22378f 100644 (file)
@@ -151,8 +151,10 @@ VisuGUI_SetupPlot2dDlg::VisuGUI_SetupPlot2dDlg( _PTR(SObject) object, VISU::Tabl
         std::vector<std::string> rowTitles = tblIntAttr->GetRowTitles();
         std::vector<std::string> rowUnits  = tblIntAttr->GetRowUnits();
         QStringList rows;
-        for ( int i = 0; i < nbRows; i++ )
+        for ( int i = 0; i < nbRows; i++ ) {
+          if(myTable && myTable->isDeviationRow(i)) continue;
           rows.append( rowTitles[i].c_str() );
+        }
         
         int nbItems=0;
         for ( int i = 0; i < nbRows; i++ ) {
@@ -206,8 +208,10 @@ VisuGUI_SetupPlot2dDlg::VisuGUI_SetupPlot2dDlg( _PTR(SObject) object, VISU::Tabl
         std::vector<std::string> rowTitles = tblRealAttr->GetRowTitles();
         std::vector<std::string> rowUnits  = tblRealAttr->GetRowUnits();
         QStringList rows;
-        for ( int i = 0; i < nbRows; i++ )
+        for ( int i = 0; i < nbRows; i++ ) {
+          if(myTable && myTable->isDeviationRow(i)) continue;
           rows.append( rowTitles[i].c_str() );
+        }
         int nbItems = 0;
         for ( int i = 0; i < nbRows; i++ ) {
           if(myTable && myTable->isDeviationRow(i)) continue;
@@ -323,7 +327,7 @@ void VisuGUI_SetupPlot2dDlg::getCurvesSource( int& horIndex, QList<int>& verInde
       else if ( myItems.at( i )->isVertical2On() ) {
         ver2Indexes.append( i );
       }
-      zIndices.append( myItems.at( i )->assigned() );
+      zIndices.append( idx(myItems.at( i )->assigned()) );
     }
   }
 }