mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-04-08 16:37:26 +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),
|
WStyle_Title | WStyle_SysMenu | WDestructiveClose),
|
||||||
mySMESHGUI( theModule ),
|
mySMESHGUI( theModule ),
|
||||||
mySelectionMgr( SMESH::GetSelectionMgr( theModule ) ),
|
mySelectionMgr( SMESH::GetSelectionMgr( theModule ) ),
|
||||||
|
mySelector(SMESH::GetViewWindow( theModule )->GetSelector()),
|
||||||
myIsBusy( false ),
|
myIsBusy( false ),
|
||||||
myActor( 0 )
|
myActor( 0 )
|
||||||
{
|
{
|
||||||
@ -103,7 +104,6 @@ SMESHGUI_GroupDlg::SMESHGUI_GroupDlg( SMESHGUI* theModule, const char* name,
|
|||||||
myGeomGroupLine->setEnabled(false);
|
myGeomGroupLine->setEnabled(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
mySelector = (SMESH::GetViewWindow( mySMESHGUI ))->GetSelector();
|
|
||||||
|
|
||||||
/* Move widget on the botton right corner of main widget */
|
/* Move widget on the botton right corner of main widget */
|
||||||
int x, y ;
|
int x, y ;
|
||||||
@ -121,12 +121,11 @@ SMESHGUI_GroupDlg::SMESHGUI_GroupDlg( SMESHGUI* theModule, const char* name,
|
|||||||
WStyle_Title | WStyle_SysMenu | WDestructiveClose),
|
WStyle_Title | WStyle_SysMenu | WDestructiveClose),
|
||||||
mySMESHGUI( theModule ),
|
mySMESHGUI( theModule ),
|
||||||
mySelectionMgr( SMESH::GetSelectionMgr( theModule ) ),
|
mySelectionMgr( SMESH::GetSelectionMgr( theModule ) ),
|
||||||
|
mySelector(SMESH::GetViewWindow( theModule )->GetSelector()),
|
||||||
myIsBusy( false )
|
myIsBusy( false )
|
||||||
{
|
{
|
||||||
if (!name) setName("SMESHGUI_GroupDlg");
|
if (!name) setName("SMESHGUI_GroupDlg");
|
||||||
|
|
||||||
mySelector = (SMESH::GetViewWindow( mySMESHGUI ))->GetSelector();
|
|
||||||
|
|
||||||
initDialog(false);
|
initDialog(false);
|
||||||
if (!theGroup->_is_nil())
|
if (!theGroup->_is_nil())
|
||||||
init(theGroup);
|
init(theGroup);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user