mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-11-15 10:08:35 +05:00
Bug IPAL21436 - TC5.1.3 Call of Pop-up onLocal Coordinate System is Attempt to access to null object, SIGSEGV. Regress
This commit is contained in:
parent
94006657e9
commit
11144d3576
@ -547,12 +547,14 @@ void DisplayGUI::ChangeDisplayMode( const int mode, SUIT_ViewWindow* viewWindow
|
||||
ic->SetDisplayMode( interIter.Value(), AIS_Shaded, false );
|
||||
if (mode == 2 ) {
|
||||
Handle(GEOM_AISShape) aSh = Handle(GEOM_AISShape)::DownCast( interIter.Value() );
|
||||
if ( !aSh.IsNull() ) {
|
||||
aSh->SetDisplayVectors(!aSh->isShowVectors());
|
||||
ic->RecomputePrsOnly(interIter.Value());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
ic->UpdateCurrentViewer();
|
||||
}
|
||||
}
|
||||
|
@ -202,6 +202,7 @@ bool GEOMGUI_Selection::isVectorsMode( const int index ) const
|
||||
Handle(AIS_InteractiveObject) io = lst.First();
|
||||
if ( !io.IsNull() ) {
|
||||
Handle(GEOM_AISShape) aSh = Handle(GEOM_AISShape)::DownCast(io);
|
||||
if ( !aSh.IsNull() )
|
||||
ret = aSh->isShowVectors();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user