From: dbv Date: Tue, 6 Sep 2016 14:33:46 +0000 (+0300) Subject: Debug for deflection dump X-Git-Tag: V_2.5.0~39 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ba6903bcce298e98157ad2d46702b0759143ca50;p=modules%2Fshaper.git Debug for deflection dump --- diff --git a/src/ModelHighAPI/ModelHighAPI_Dumper.cpp b/src/ModelHighAPI/ModelHighAPI_Dumper.cpp index 840374b18..2cd7d223f 100644 --- a/src/ModelHighAPI/ModelHighAPI_Dumper.cpp +++ b/src/ModelHighAPI/ModelHighAPI_Dumper.cpp @@ -446,7 +446,7 @@ bool ModelHighAPI_Dumper::isDefaultColor(const ResultPtr& theResult) const bool ModelHighAPI_Dumper::isDefaultDeflection(const ResultPtr& theResult) const { AttributeDoublePtr aDeflectionAttr = theResult->data()->real(ModelAPI_Result::DEFLECTION_ID()); - if(!aDeflectionAttr && !aDeflectionAttr->isInitialized()) { + if(!aDeflectionAttr || !aDeflectionAttr->isInitialized()) { return true; }