From 7340566c73e76dacbb07d702c21ffb0068cb8e5c Mon Sep 17 00:00:00 2001 From: mpv Date: Fri, 5 Sep 2014 09:43:50 +0400 Subject: [PATCH] Fixed crash on "distance" constraint creation: validator was moved from Model to SketchPlugin --- src/SketchPlugin/SketchPlugin_Validators.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2