From a865aa12af582a85ed234118cc41ba8dffec12ed Mon Sep 17 00:00:00 2001 From: asl Date: Fri, 31 Jan 2014 13:36:32 +0000 Subject: [PATCH] check status of channel constructor --- src/HYDROData/HYDROData_Channel.cxx | 3 +++ 1 file changed, 3 insertions(+) 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() ); -- 2.39.2