Index: ps.c =================================================================== --- ps.c (revision 23381) +++ ps.c (revision 23382) @@ -662,15 +662,7 @@ global.scale_factor *= MIN(zx, zy); } -TODO("use pcb_has_explicit_outline() instead") - global.has_outline = 0; - for(i = 0, g = PCB->LayerGroups.grp; i < PCB->LayerGroups.len; i++,g++) { - if (PCB_LAYER_IS_OUTLINE(g->ltype, g->purpi) && !pcb_layergrp_is_pure_empty(PCB, i)) { - global.has_outline = 1; - break; - } - } - + global.has_outline = pcb_has_explicit_outline(PCB); memcpy(saved_layer_stack, pcb_layer_stack, sizeof(pcb_layer_stack)); qsort(pcb_layer_stack, pcb_max_layer, sizeof(pcb_layer_stack[0]), layer_sort);