// It can be a reference on curve, published under a container.
// In this case the curve should be removed from the container.
// See bug 10441.
- CORBA::Object_var aCorbaObj = VISU::GetSelectedObj(anAppStudy, aRefObj->GetID());
+ CORBA::Object_var aCorbaObj = VISU::GetSelectedObj(anAppStudy, aRefObj->GetID().c_str());
if (!CORBA::is_nil(aCorbaObj)) {
VISU::Base_var aVisuObj = VISU::Base::_narrow(aCorbaObj);
if (!CORBA::is_nil(aVisuObj) && aVisuObj->GetType() == VISU::TMESH)
else if (!CORBA::is_nil(aVisuObj) && aVisuObj->GetType() == VISU::TCURVE) {
VISU::Curve_ptr aCurve = VISU::Curve::_narrow(aVisuObj);
_PTR(SObject) aParentSO = aSObject->GetFather();
- aCorbaObj = VISU::GetSelectedObj(anAppStudy, aParentSO->GetID());
+ aCorbaObj = VISU::GetSelectedObj(anAppStudy, aParentSO->GetID().c_str());
if (!CORBA::is_nil(aCorbaObj) && !CORBA::is_nil(aCurve)) {
aVisuObj = VISU::Base::_narrow(aCorbaObj);
if (!CORBA::is_nil(aVisuObj) && aVisuObj->GetType() == VISU::TCONTAINER) {