From fcadc039c529450976a61d776aec793490709028 Mon Sep 17 00:00:00 2001 From: apo Date: Fri, 13 Jul 2007 08:27:39 +0000 Subject: [PATCH] Minor changes --- src/VISU_I/VISU_ColoredPrs3dHolder_i.cc | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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(); } -- 2.39.2