From 63dc92fee6e395012ac602da709a10da536c5ab4 Mon Sep 17 00:00:00 2001 From: vsr Date: Tue, 18 Jan 2011 13:52:41 +0000 Subject: [PATCH] Fix a bug : crash on Plot2d viewer activation (for imp 0020948) --- src/SPlot2d/SPlot2d_ViewModel.cxx | 1 + 1 file changed, 1 insertion(+) 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; -- 2.39.2