]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/GeomValidators/GeomValidators_Finite.cpp
Salome HOME
Issue #1834: Fix length of lines
[modules/shaper.git] / src / GeomValidators / GeomValidators_Finite.cpp
index 67f8d70c94687efd4e836ed10ad9d8589e9928ea..c8f5d02ad17121e3a4707accc5f64f789fa9607d 100755 (executable)
@@ -20,9 +20,11 @@ bool GeomValidators_Finite::isValid(const AttributePtr& theAttribute,
   const std::string anAttributeType = theAttribute->attributeType();
 
   if(anAttributeType == ModelAPI_AttributeSelection::typeId()) {
-    AttributeSelectionPtr aSelectionAttr = std::dynamic_pointer_cast<ModelAPI_AttributeSelection>(theAttribute);
+    AttributeSelectionPtr aSelectionAttr = 
+      std::dynamic_pointer_cast<ModelAPI_AttributeSelection>(theAttribute);
     ResultPtr aResult = aSelectionAttr->context();
-    ResultConstructionPtr aConstruction = std::dynamic_pointer_cast<ModelAPI_ResultConstruction>(aResult);
+    ResultConstructionPtr aConstruction = 
+      std::dynamic_pointer_cast<ModelAPI_ResultConstruction>(aResult);
     if (aConstruction.get() && aConstruction->isInfinite()) {
       aValid = false;
       theError = "Infinite result is selected.";
@@ -34,7 +36,8 @@ bool GeomValidators_Finite::isValid(const AttributePtr& theAttribute,
       AttributeSelectionPtr aSelectAttr = aSelectionListAttr->value(i);
       ResultPtr aResult = aSelectAttr->context();
       if (aResult.get() && aResult->groupName() == ModelAPI_ResultConstruction::group()) {
-        ResultConstructionPtr aConstruction = std::dynamic_pointer_cast<ModelAPI_ResultConstruction>(aResult);
+        ResultConstructionPtr aConstruction = 
+          std::dynamic_pointer_cast<ModelAPI_ResultConstruction>(aResult);
         if (aConstruction.get() && aConstruction->isInfinite()) {
           aValid = false;
           theError = "Infinite result is selected.";