Index: trunk/src_plugins/lib_vfs/lib_vfs.c =================================================================== --- trunk/src_plugins/lib_vfs/lib_vfs.c (revision 24316) +++ trunk/src_plugins/lib_vfs/lib_vfs.c (revision 24317) @@ -365,7 +365,7 @@ obj = htip_get(&data->id2obj, oid); if ((obj == NULL) || (obj->type != ty)) return -1; - if ((obj->parent_type != PCB_PARENT_LAYER) || (obj->parent.layer != pcb_get_layer(PCB->Data, lid))) + if ((obj->parent_type != PCB_PARENT_LAYER) || (obj->parent.layer != pcb_get_layer(data, lid))) return -1; res = vfs_access_obj(pcb, obj, path, buff, wr, isdir); }