Commit ce6377a8 authored by claes's avatar claes

Remtrans table exited is remnode has other child than remtrans

parent e4b135f5
/*
* Proview $Id: xtt_xnav_tables.cpp,v 1.14 2007-01-04 08:22:47 claes Exp $
* Proview $Id: xtt_xnav_tables.cpp,v 1.15 2007-01-24 12:45:23 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
......@@ -1421,6 +1421,7 @@ int XNav::show_remtrans( pwr_tObjid remnode_objid)
pwr_sAttrRef attrref;
pwr_sClass_RemTrans *object_ptr;
pwr_tOName namebuf;
pwr_tCid cid;
brow_pop();
brow_SetNodraw( brow->ctx);
......@@ -1441,8 +1442,11 @@ int XNav::show_remtrans( pwr_tObjid remnode_objid)
sts = gdh_GetClassList ( pwr_cClass_RemTrans, &objid);
else
sts = gdh_GetChild( remnode_objid, &objid);
while ( ODD(sts))
{
while ( ODD(sts)) {
sts = gdh_GetObjectClass( objid, &cid);
if ( EVEN(sts)) return sts;
if ( cid == pwr_cClass_RemTrans) {
memset( &attrref, 0, sizeof( attrref));
attrref.Objid = objid;
sts = gdh_DLRefObjectInfoAttrref ( &attrref,
......@@ -1542,7 +1546,7 @@ int XNav::show_remtrans( pwr_tObjid remnode_objid)
ts.subid_cnt = 1;
new ItemRemTrans( brow, this, objid, &t, &ts, -1, 0, 0, 0, NULL,
flow_eDest_IntoLast);
}
if ( cdh_ObjidIsNull( remnode_objid))
sts = gdh_GetNextObject( objid, &objid);
else
......
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