From: mpv Date: Fri, 5 Sep 2014 05:43:50 +0000 (+0400) Subject: Fixed crash on "distance" constraint creation: validator was moved from Model to... X-Git-Tag: V_0.4.4~78^2~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7340566c73e76dacbb07d702c21ffb0068cb8e5c;p=modules%2Fshaper.git Fixed crash on "distance" constraint creation: validator was moved from Model to SketchPlugin --- diff --git a/src/SketchPlugin/SketchPlugin_Validators.cpp b/src/SketchPlugin/SketchPlugin_Validators.cpp index 7880ff033..2d135af00 100644 --- a/src/SketchPlugin/SketchPlugin_Validators.cpp +++ b/src/SketchPlugin/SketchPlugin_Validators.cpp @@ -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(aFactory->validator("Model_ResultLineValidator")); + dynamic_cast(aFactory->validator("SketchPlugin_ResultLineValidator")); if (!aLineValidator->isValid(theObject)) return true;