Salome HOME
check status of channel constructor
authorasl <asl@opencascade.com>
Fri, 31 Jan 2014 13:36:32 +0000 (13:36 +0000)
committerasl <asl@opencascade.com>
Fri, 31 Jan 2014 13:36:32 +0000 (13:36 +0000)
src/HYDROData/HYDROData_Channel.cxx

index ab054c726d6d2ed1a744b90499ced9cd1b03ee81..bd757fbd7b4bc1ba8c1f34edcdf8344f4b641aef 100644 (file)
@@ -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() );