From: apo Date: Fri, 13 Jul 2007 08:27:39 +0000 (+0000) Subject: Minor changes X-Git-Tag: T_MULTIPR_INDUS_Persistence~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=fcadc039c529450976a61d776aec793490709028;p=modules%2Fvisu.git Minor changes --- diff --git a/src/VISU_I/VISU_ColoredPrs3dHolder_i.cc b/src/VISU_I/VISU_ColoredPrs3dHolder_i.cc index 9441e543..8ee44542 100644 --- a/src/VISU_I/VISU_ColoredPrs3dHolder_i.cc +++ b/src/VISU_I/VISU_ColoredPrs3dHolder_i.cc @@ -150,7 +150,11 @@ VISU::ColoredPrs3d_i* VISU::ColoredPrs3dHolder_i ::GetPrs3dDevice() { - return myCache.GetLastVisitedPrs(this); + try{ + return myCache.GetLastVisitedPrs(this); + }catch(...){} + + return NULL; } @@ -158,7 +162,10 @@ VISU::ColoredPrs3d_ptr VISU::ColoredPrs3dHolder_i ::GetDevice() { - return GetPrs3dDevice()->_this(); + if( VISU::ColoredPrs3d_i* aDevice = GetPrs3dDevice() ) + return aDevice->_this(); + + return VISU::ColoredPrs3d::_nil(); }