mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-13 18:20:34 +05:00
Fix for Bug Bug GVIEW11213
SIGSEGV at group creation (it is necessary to initialize mySelector field first of all other actions)
This commit is contained in:
parent
9753286dfd
commit
bf88e44c8e
@ -89,6 +89,7 @@ SMESHGUI_GroupDlg::SMESHGUI_GroupDlg( SMESHGUI* theModule, const char* name,
|
||||
WStyle_Title | WStyle_SysMenu | WDestructiveClose),
|
||||
mySMESHGUI( theModule ),
|
||||
mySelectionMgr( SMESH::GetSelectionMgr( theModule ) ),
|
||||
mySelector(SMESH::GetViewWindow( theModule )->GetSelector()),
|
||||
myIsBusy( false ),
|
||||
myActor( 0 )
|
||||
{
|
||||
@ -103,7 +104,6 @@ SMESHGUI_GroupDlg::SMESHGUI_GroupDlg( SMESHGUI* theModule, const char* name,
|
||||
myGeomGroupLine->setEnabled(false);
|
||||
}
|
||||
|
||||
mySelector = (SMESH::GetViewWindow( mySMESHGUI ))->GetSelector();
|
||||
|
||||
/* Move widget on the botton right corner of main widget */
|
||||
int x, y ;
|
||||
@ -121,12 +121,11 @@ SMESHGUI_GroupDlg::SMESHGUI_GroupDlg( SMESHGUI* theModule, const char* name,
|
||||
WStyle_Title | WStyle_SysMenu | WDestructiveClose),
|
||||
mySMESHGUI( theModule ),
|
||||
mySelectionMgr( SMESH::GetSelectionMgr( theModule ) ),
|
||||
mySelector(SMESH::GetViewWindow( theModule )->GetSelector()),
|
||||
myIsBusy( false )
|
||||
{
|
||||
if (!name) setName("SMESHGUI_GroupDlg");
|
||||
|
||||
mySelector = (SMESH::GetViewWindow( mySMESHGUI ))->GetSelector();
|
||||
|
||||
initDialog(false);
|
||||
if (!theGroup->_is_nil())
|
||||
init(theGroup);
|
||||
|
Loading…
Reference in New Issue
Block a user