Commit e1740e85 authored by Claes Sjofors's avatar Claes Sjofors

wb, fix for attrref with size 0

parent 86cc5208
......@@ -378,7 +378,7 @@ wb_attribute wb_volume::attribute(const pwr_sAttrRef* arp) const
}
// Check if we shall reference the whole object
if (arp->Size == 0 ||
if ((arp->Size == 0 && arp->Offset == 0) ||
(arp->Offset == 0 && arp->Size == bdrep->size() && bdrep->nAttribute() != 1)) {
wb_attribute a(sts, orep);
orep->unref();
......
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