From: mkr Date: Wed, 6 Aug 2008 06:03:49 +0000 (+0000) Subject: Feature 0016100 : EDF 429 VISU : Automatic creation of a view Plot2D when we display... X-Git-Tag: TG_TRIPOLI_qt4_porting~34 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=108e92cc28df73c109564c42501ebbfedaf70875;p=modules%2Fgui.git Feature 0016100 : EDF 429 VISU : Automatic creation of a view Plot2D when we display a curve. --- 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 );