From cb235c8e3016593d3c202a7546ab27c2daa4a855 Mon Sep 17 00:00:00 2001 From: vsr Date: Sun, 16 Jan 2011 19:34:45 +0000 Subject: [PATCH] Add histogram items to the Plot2d viewer --- src/VISUGUI/VisuGUI_Displayer.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.2