Salome HOME
Compillation correction
authornds <nds@opencascade.com>
Fri, 4 Sep 2015 11:36:32 +0000 (14:36 +0300)
committernds <nds@opencascade.com>
Fri, 4 Sep 2015 11:36:32 +0000 (14:36 +0300)
src/GeomValidators/GeomValidators_Different.cpp
src/GeomValidators/GeomValidators_Face.cpp

index 45de46f7dd605339a99fb8b051036bb28e2032ee..353df10b8d08b423db46210ba24298d0050dc179 100644 (file)
@@ -72,7 +72,7 @@ bool GeomValidators_Different::isValid(const std::shared_ptr<ModelAPI_Feature>&
         std::list<AttributePtr>::const_iterator aFindIt =
             std::find_if(aNextIt, anAttributes.end(), IsEqual(*anAttributeIt));
         if (aFindIt != anAttributes.end()) {
-          theError = "Attributes " + anAttributeIt->id() + " and " + aFindIt->id() + " are equal." ;
+          theError = "Attributes " + (*anAttributeIt)->id() + " and " + (*aFindIt)->id() + " are equal." ;
           return false;
         }
         ++anAttributeIt;
index be0d9270eb69d8c25fe63ed949e6b5d6345aacef..a9fb025aebb3ee10141ea575ba78c9393b19b76f 100644 (file)
@@ -66,20 +66,20 @@ bool GeomValidators_Face::isValid(const AttributePtr& theAttribute,
             case GeomAbs_Plane:
               aValid = aGeomFace->isPlanar();
               if (!aValid)
-                theError = "The shape is not a plane."
+                theError = "The shape is not a plane.";
               break;
             case GeomAbs_Cylinder:
               aValid = aGeomFace->isCylindrical();
               if (!aValid)
-                theError = "The shape is not a cylinder."
+                theError = "The shape is not a cylinder.";
               break;
             default:
-              theError = "The shape is not an available face."
+              theError = "The shape is not an available face.";
               break;
         }
       }
     } else
-      theError = "The shape is not a face."
+      theError = "The shape is not a face.";
   }
   else
     aValid = true; // an empty face selected is valid.