Commit 426ee4db authored by Claes Sjofors's avatar Claes Sjofors

Bugfix for destination for first object

parent 6f989254
......@@ -706,10 +706,18 @@ wb_orep *wb_vrepmem::createObject(pwr_tStatus *sts, wb_cdef cdef, wb_destination
if ( d.oid().oix == 0) {
dest = root_object;
if ( code == ldh_eDest_IntoLast)
code = ldh_eDest_After;
if ( code == ldh_eDest_IntoFirst)
code = ldh_eDest_Before;
if ( !root_object) {
if ( code == ldh_eDest_After)
code = ldh_eDest_IntoLast;
if ( code == ldh_eDest_Before)
code = ldh_eDest_IntoFirst;
}
else {
if ( code == ldh_eDest_IntoLast)
code = ldh_eDest_After;
if ( code == ldh_eDest_IntoFirst)
code = ldh_eDest_Before;
}
}
else {
dest = findObject( d.oid().oix);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment