Index: trunk/src_plugins/export_dxf/dxf.c =================================================================== --- trunk/src_plugins/export_dxf/dxf.c (revision 27679) +++ trunk/src_plugins/export_dxf/dxf.c (revision 27680) @@ -337,7 +337,8 @@ fclose(dxf_ctx.f); if (pcb_cam_end(&dxf_cam) == 0) - pcb_message(PCB_MSG_ERROR, "dxf cam export for '%s' failed to produce any content\n", options[HA_cam].str); + if (!dxf_cam.okempty) + pcb_message(PCB_MSG_ERROR, "dxf cam export for '%s' failed to produce any content\n", options[HA_cam].str); } static int dxf_parse_arguments(pcb_hid_t *hid, int *argc, char ***argv) Index: trunk/src_plugins/export_excellon/excellon.c =================================================================== --- trunk/src_plugins/export_excellon/excellon.c (revision 27679) +++ trunk/src_plugins/export_excellon/excellon.c (revision 27680) @@ -280,7 +280,8 @@ } if (pcb_cam_end(&excellon_cam) == 0) - pcb_message(PCB_MSG_ERROR, "excellon cam export for '%s' failed to produce any content\n", options[HA_cam].str); + if (!excellon_cam.okempty) + pcb_message(PCB_MSG_ERROR, "excellon cam export for '%s' failed to produce any content\n", options[HA_cam].str); pcb_drill_uninit(&pdrills); pcb_drill_uninit(&udrills); Index: trunk/src_plugins/export_gerber/gerber.c =================================================================== --- trunk/src_plugins/export_gerber/gerber.c (revision 27679) +++ trunk/src_plugins/export_gerber/gerber.c (revision 27680) @@ -660,7 +660,8 @@ } if (pcb_cam_end(&gerber_cam) == 0) - pcb_message(PCB_MSG_ERROR, "gerber cam export for '%s' failed to produce any content\n", options[HA_cam].str); + if (!gerber_cam.okempty) + pcb_message(PCB_MSG_ERROR, "gerber cam export for '%s' failed to produce any content\n", options[HA_cam].str); pcb_drill_uninit(&pdrills); pcb_drill_uninit(&udrills); Index: trunk/src_plugins/export_png/png.c =================================================================== --- trunk/src_plugins/export_png/png.c (revision 27679) +++ trunk/src_plugins/export_png/png.c (revision 27680) @@ -780,7 +780,8 @@ free(black); if (pcb_cam_end(&png_cam) == 0) - pcb_message(PCB_MSG_ERROR, "png cam export for '%s' failed to produce any content\n", options[HA_cam].str); + if (!png_cam.okempty) + pcb_message(PCB_MSG_ERROR, "png cam export for '%s' failed to produce any content\n", options[HA_cam].str); } static int png_parse_arguments(pcb_hid_t *hid, int *argc, char ***argv) Index: trunk/src_plugins/export_ps/eps.c =================================================================== --- trunk/src_plugins/export_ps/eps.c (revision 27679) +++ trunk/src_plugins/export_ps/eps.c (revision 27680) @@ -349,7 +349,8 @@ fclose(f); if (pcb_cam_end(&eps_cam) == 0) - pcb_message(PCB_MSG_ERROR, "eps cam export for '%s' failed to produce any content\n", options[HA_cam].str); + if (!eps_cam.okempty) + pcb_message(PCB_MSG_ERROR, "eps cam export for '%s' failed to produce any content\n", options[HA_cam].str); } static int eps_parse_arguments(pcb_hid_t *hid, int *argc, char ***argv) Index: trunk/src_plugins/export_ps/ps.c =================================================================== --- trunk/src_plugins/export_ps/ps.c (revision 27679) +++ trunk/src_plugins/export_ps/ps.c (revision 27680) @@ -663,7 +663,8 @@ } if (pcb_cam_end(&ps_cam) == 0) - pcb_message(PCB_MSG_ERROR, "eps cam export for '%s' failed to produce any content\n", options[HA_cam].str); + if (!ps_cam.okempty) + pcb_message(PCB_MSG_ERROR, "ps cam export for '%s' failed to produce any content\n", options[HA_cam].str); } static int ps_parse_arguments(pcb_hid_t *hid, int *argc, char ***argv) Index: trunk/src_plugins/export_svg/svg.c =================================================================== --- trunk/src_plugins/export_svg/svg.c (revision 27679) +++ trunk/src_plugins/export_svg/svg.c (revision 27680) @@ -366,7 +366,8 @@ f = NULL; if (pcb_cam_end(&svg_cam) == 0) - pcb_message(PCB_MSG_ERROR, "svg cam export for '%s' failed to produce any content\n", options[HA_cam].str); + if (!svg_cam.okempty) + pcb_message(PCB_MSG_ERROR, "svg cam export for '%s' failed to produce any content\n", options[HA_cam].str); } static int svg_parse_arguments(pcb_hid_t *hid, int *argc, char ***argv)