return -1;
if (myObjects.IsBound (theIObj))
+ {
return theIObj->GetZLayer (myMainPM);
+ }
+ else if (HasOpenedContext ())
+ {
+ return myLocalContexts (myCurLocalIndex)->GetZLayer (theIObj);
+ }
- return myLocalContexts (myCurLocalIndex)->GetZLayer (theIObj);
+ return -1;
}