]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Add histogram items to the Plot2d viewer
authorvsr <vsr@opencascade.com>
Sun, 16 Jan 2011 19:34:45 +0000 (19:34 +0000)
committervsr <vsr@opencascade.com>
Sun, 16 Jan 2011 19:34:45 +0000 (19:34 +0000)
src/VISUGUI/VisuGUI_Displayer.cxx

index 84a2d03c840cd522bd6c2cdc4c72893983d97bc5..bfa420adcd4ee184f3bf624b24037605672ae59a 100644 (file)
@@ -238,7 +238,7 @@ SPlot2d_Prs* VisuGUI_Displayer::buildContainer( Plot2d_ViewWindow* wnd, VISU::Co
     if( theCurve && theCurve->IsValid() )
       addCurve( prs, wnd, theCurve );
   }
-  if( prs->getCurves().count()==0 )
+  if( prs->getObjects().count()==0 )
   {
     delete prs;
     prs = 0;
@@ -272,7 +272,7 @@ SPlot2d_Prs* VisuGUI_Displayer::buildTable( Plot2d_ViewWindow* wnd, VISU::Table_
       }
     }
   }
-  if( prs->getCurves().count()==0 )
+  if( prs->getObjects().count()==0 )
   {
     delete prs;
     prs = 0;