]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Feature 0016100 : EDF 429 VISU : Automatic creation of a view Plot2D when we display...
authormkr <mkr@opencascade.com>
Wed, 6 Aug 2008 06:03:49 +0000 (06:03 +0000)
committermkr <mkr@opencascade.com>
Wed, 6 Aug 2008 06:03:49 +0000 (06:03 +0000)
src/LightApp/LightApp_Displayer.cxx

index 8c92f18ef56d489c719119eee65d0221b42d3fb4..51abdaf7a49d195623712e539c03ee3531a1d907 100644 (file)
@@ -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 );