myType = CONSTRAINT_MULTI_ROTATION;
- myStorage->update(aCenterAttr);
- theCenter = myStorage->entity(aCenterAttr);
+ myStorage->update(AttributePtr(aCenterAttr));
+ theCenter = myStorage->entity(AttributePtr(aCenterAttr));
AttributeStringPtr aMethodTypeAttr =
myBaseConstraint->string(SketchPlugin_MultiRotation::ANGLE_TYPE());
myType = CONSTRAINT_MULTI_TRANSLATION;
- myStorage->update(aStartPointAttr);
- theStartPoint = myStorage->entity(aStartPointAttr);
- myStorage->update(aEndPointAttr);
- theEndPoint = myStorage->entity(aEndPointAttr);
+ myStorage->update(AttributePtr(aStartPointAttr));
+ theStartPoint = myStorage->entity(AttributePtr(aStartPointAttr));
+ myStorage->update(AttributePtr(aEndPointAttr));
+ theEndPoint = myStorage->entity(AttributePtr(aEndPointAttr));
AttributeStringPtr aMethodTypeAttr = aData->string(SketchPlugin_MultiTranslation::VALUE_TYPE());
theFullValue = aMethodTypeAttr->value() != "SingleValue";