From: azv Date: Wed, 17 May 2017 12:21:55 +0000 (+0300) Subject: Issue #2167: error when create circle X-Git-Tag: V_2.7.1~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b6dee14600299470ff26d198967fa48fb5bba99c;p=modules%2Fshaper.git Issue #2167: error when create circle Fix validator for the passed point (compare referred objects not features) --- 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; }