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:
ouv 2009-10-23 08:51:26 +00:00
parent 94006657e9
commit 11144d3576
2 changed files with 49 additions and 46 deletions

View File

@ -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();
}
}

View File

@ -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();
}
}