]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Fix a bug : crash on Plot2d viewer activation (for imp 0020948)
authorvsr <vsr@opencascade.com>
Tue, 18 Jan 2011 13:52:41 +0000 (13:52 +0000)
committervsr <vsr@opencascade.com>
Tue, 18 Jan 2011 13:52:41 +0000 (13:52 +0000)
src/SPlot2d/SPlot2d_ViewModel.cxx

index 581027ee37cf080b07f4d5c8b3a54adde7f67bd8..37ca42aa18ade16661f4264c79322985213ece4c 100644 (file)
@@ -376,6 +376,7 @@ SPlot2d_Curve* SPlot2d_Viewer::getCurveByIO( const Handle(SALOME_InteractiveObje
 SUIT_ViewWindow* SPlot2d_Viewer::createView( SUIT_Desktop* theDesktop )
 {
   SPlot2d_ViewWindow* aPlot2dView = new SPlot2d_ViewWindow(theDesktop, this);
+  aPlot2dView->initLayout();
   if (getPrs())
     aPlot2dView->getViewFrame()->Display(getPrs());
   return aPlot2dView;