Index: trunk/src/hid_cam.c =================================================================== --- trunk/src/hid_cam.c (revision 18287) +++ trunk/src/hid_cam.c (revision 18288) @@ -308,7 +308,7 @@ free(dst->inst); dst->inst = NULL; if (!dst->active) - return 0; + return -1; layervis_restore(dst); dst->active = 0; return dst->exported_grps; @@ -320,7 +320,7 @@ const pcb_virt_layer_t *vl; if (!cam->active) - return -1; + return 0; vl = pcb_vlayer_get_first(flags); if (vl == NULL) {