Commit 3f01e7eb authored by claes's avatar claes

Aref to object with devbody only was not handled correctly

parent 157c3a80
/*
* Proview $Id: wb_attribute.cpp,v 1.35 2005-10-21 16:11:22 claes Exp $
* Proview $Id: wb_attribute.cpp,v 1.36 2006-02-23 14:38:28 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
......@@ -61,8 +61,12 @@ wb_attribute::wb_attribute(pwr_tStatus sts, wb_orep * orep) :
}
wb_bdef bdef(((wb_cdrep *)cdef)->bdrep(&m_sts, pwr_eBix_rt));
if (EVEN(bdef.sts())) {
m_sts = bdef.sts();
return;
wb_bdef bdefdev(((wb_cdrep *)cdef)->bdrep(&m_sts, pwr_eBix_dev));
if (EVEN(bdefdev.sts())) {
m_sts = bdefdev.sts();
return;
}
bdef = bdefdev;
}
m_size = bdef.size();
......
/*
* Proview $Id: wb_volume.cpp,v 1.32 2005-12-13 15:15:53 claes Exp $
* Proview $Id: wb_volume.cpp,v 1.33 2006-02-23 14:40:33 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
......@@ -354,6 +354,12 @@ wb_attribute wb_volume::attribute(const pwr_sAttrRef* arp) const
return wb_attribute();
orep->ref();
if ( arp->Flags.b.Object) {
wb_attribute a(sts, orep);
orep->unref();
return a;
}
cdrep = new wb_cdrep(*orep);
if (EVEN(cdrep->sts())) { orep->unref(); return wb_attribute();}
......
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