]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #2167: error when create circle
authorazv <azv@opencascade.com>
Wed, 17 May 2017 12:21:55 +0000 (15:21 +0300)
committerazv <azv@opencascade.com>
Wed, 17 May 2017 12:22:20 +0000 (15:22 +0300)
Fix validator for the passed point (compare referred objects not features)

src/SketchPlugin/SketchPlugin_Validators.cpp

index d6229b0d5633d6f1e43d86d4cd1edae58ce758bf..4de4502beb2309d3a60df61b7c983dfd2619906f 100755 (executable)
@@ -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;
     }