From 108e92cc28df73c109564c42501ebbfedaf70875 Mon Sep 17 00:00:00 2001 From: mkr Date: Wed, 6 Aug 2008 06:03:49 +0000 Subject: [PATCH] Feature 0016100 : EDF 429 VISU : Automatic creation of a view Plot2D when we display a curve. --- src/LightApp/LightApp_Displayer.cxx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/LightApp/LightApp_Displayer.cxx b/src/LightApp/LightApp_Displayer.cxx index 8c92f18ef..51abdaf7a 100644 --- a/src/LightApp/LightApp_Displayer.cxx +++ b/src/LightApp/LightApp_Displayer.cxx @@ -56,12 +56,11 @@ LightApp_Displayer::~LightApp_Displayer() */ void LightApp_Displayer::Display( const QString& entry, const bool updateViewer, SALOME_View* theViewFrame ) { - SALOME_View* vf = theViewFrame ? theViewFrame : GetActiveView(); - if ( vf ) + SALOME_Prs* prs = buildPresentation( entry, theViewFrame ); + if ( prs ) { - SALOME_Prs* prs = buildPresentation( entry, vf ); - - if ( prs ) + SALOME_View* vf = theViewFrame ? theViewFrame : GetActiveView(); + if ( vf ) { vf->BeforeDisplay( this ); vf->Display( prs ); -- 2.39.2