From: asl Date: Fri, 31 Jan 2014 13:36:32 +0000 (+0000) Subject: check status of channel constructor X-Git-Tag: BR_hydro_v_1_0~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a865aa12af582a85ed234118cc41ba8dffec12ed;p=modules%2Fhydro.git check status of channel constructor --- diff --git a/src/HYDROData/HYDROData_Channel.cxx b/src/HYDROData/HYDROData_Channel.cxx index ab054c72..bd757fbd 100644 --- a/src/HYDROData/HYDROData_Channel.cxx +++ b/src/HYDROData/HYDROData_Channel.cxx @@ -108,6 +108,9 @@ void HYDROData_Channel::Update() #endif HYDROData_Canal3dAnd2d aChannelConstructor( aProfileWire, aPathWire ); + if( aChannelConstructor.GetStatus() != 0 ) + return; + aChannelConstructor.Create3dPresentation(); aChannelConstructor.Create2dPresentation(); SetShape3D( aChannelConstructor.Get3dPresentation() );