]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Debug for deflection dump
authordbv <dbv@opencascade.com>
Tue, 6 Sep 2016 14:33:46 +0000 (17:33 +0300)
committerdbv <dbv@opencascade.com>
Tue, 6 Sep 2016 14:33:46 +0000 (17:33 +0300)
src/ModelHighAPI/ModelHighAPI_Dumper.cpp

index 840374b185953267412eca79e98fd672e8f56e06..2cd7d223fb8fa0ee18a338aecc0b1c1bbe19e36f 100644 (file)
@@ -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;
   }