From: vsr Date: Tue, 18 Jan 2011 13:52:41 +0000 (+0000) Subject: Fix a bug : crash on Plot2d viewer activation (for imp 0020948) X-Git-Tag: V6_3_0a1~89 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=63dc92fee6e395012ac602da709a10da536c5ab4;p=modules%2Fgui.git Fix a bug : crash on Plot2d viewer activation (for imp 0020948) --- diff --git a/src/SPlot2d/SPlot2d_ViewModel.cxx b/src/SPlot2d/SPlot2d_ViewModel.cxx index 581027ee3..37ca42aa1 100644 --- a/src/SPlot2d/SPlot2d_ViewModel.cxx +++ b/src/SPlot2d/SPlot2d_ViewModel.cxx @@ -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;