From b6dee14600299470ff26d198967fa48fb5bba99c Mon Sep 17 00:00:00 2001 From: azv Date: Wed, 17 May 2017 15:21:55 +0300 Subject: [PATCH] Issue #2167: error when create circle Fix validator for the passed point (compare referred objects not features) --- src/SketchPlugin/SketchPlugin_Validators.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/SketchPlugin/SketchPlugin_Validators.cpp b/src/SketchPlugin/SketchPlugin_Validators.cpp index d6229b0d5..4de4502be 100755 --- a/src/SketchPlugin/SketchPlugin_Validators.cpp +++ b/src/SketchPlugin/SketchPlugin_Validators.cpp @@ -1159,8 +1159,7 @@ bool SketchPlugin_CirclePassedPointValidator::isValid( return true; if (aCenterRef->isObject()) { - FeaturePtr aCenterFeature = ModelAPI_Feature::feature(aCenterRef->object()); - if (aCenterFeature == aPassedFeature) { + if (aCenterRef->object() == aPassedRef->object()) { theError = aErrorMessage; return false; } -- 2.39.2