Salome HOME
Fix for exception on deletion of a Part from PartSet when it is active
[modules/shaper.git] / src / Model / Model_FeatureValidator.cpp
index 479405e4a3b21c56e95a1bef7ff87d29e63430d3..c8a204e29db52dda1f1d4f613b37392c24bd87e8 100644 (file)
@@ -44,8 +44,9 @@ bool Model_FeatureValidator::isValid(const std::shared_ptr<ModelAPI_Feature>& th
         myNotObligatory.find(theFeature->getKind());
       if (aFeatureFind == myNotObligatory.end() || // and it is obligatory for filling
           aFeatureFind->second.find(*it) == aFeatureFind->second.end()) {
-        theError = "Attribute \"%1\" is not initialized.";
-        theError.arg(anAttr->id());
+        // TODO(spo): exceptional case for translation
+        theError = "Attribute \"" + anAttr->id() + "\" is not initialized.";
+//        theError.arg(anAttr->id());
         return false;
       }
     }