]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fixed crash on "distance" constraint creation: validator was moved from Model to...
authormpv <mikhail.ponikarov@opencascade.com>
Fri, 5 Sep 2014 05:43:50 +0000 (09:43 +0400)
committermpv <mikhail.ponikarov@opencascade.com>
Fri, 5 Sep 2014 05:43:50 +0000 (09:43 +0400)
src/SketchPlugin/SketchPlugin_Validators.cpp

index 7880ff0338e266cc96f291e85eac542d462fb652..2d135af004a96510b752f87fe7a533187ea759e4 100644 (file)
@@ -20,7 +20,7 @@ bool SketchPlugin_DistanceAttrValidator::isValid(const FeaturePtr& theFeature,
 
   // If the object is not a line then it is accepted
   const ModelAPI_ResultValidator* aLineValidator =
-      dynamic_cast<const ModelAPI_ResultValidator*>(aFactory->validator("Model_ResultLineValidator"));
+      dynamic_cast<const ModelAPI_ResultValidator*>(aFactory->validator("SketchPlugin_ResultLineValidator"));
   if (!aLineValidator->isValid(theObject))
     return true;