Bug?? SetWidth fucntin in TPrsStd_AISPresentation

Hi:
In OCAF, I did
Handle(TPrsStd_AISPresentation) prs;
if (!L.FindAttribute(TPrsStd_AISPresentation::GetID(),prs))
prs = TPrsStd_AISPresentation::Set(L,TNaming_NamedShape::GetID());

prs->SetColor(Quantity_NameOfColor(TSO.Color()));
//Transparency
prs->SetTransparency(TSO.Transparency());

prs->SetMaterial(nameofmaterial);

That is OK for redo & undo functions. But, if I add "prs->SetWidth(..)". The undo is OK. But, it will cause redo function crashing. Is it a bug? thanks a lot.

Best regards,
Shawn

m-aronsson's picture

Hi !

Almost impossible to know, only the OpenCascade folks would know that and they don't answer questions ;o)

Mikael