From: vsr Date: Sun, 16 Jan 2011 19:34:45 +0000 (+0000) Subject: Add histogram items to the Plot2d viewer X-Git-Tag: V6_main_20110121~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=cb235c8e3016593d3c202a7546ab27c2daa4a855;p=modules%2Fvisu.git Add histogram items to the Plot2d viewer --- diff --git a/src/VISUGUI/VisuGUI_Displayer.cxx b/src/VISUGUI/VisuGUI_Displayer.cxx index 84a2d03c..bfa420ad 100644 --- a/src/VISUGUI/VisuGUI_Displayer.cxx +++ b/src/VISUGUI/VisuGUI_Displayer.cxx @@ -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;