Index: trunk/src/draw.h =================================================================== --- trunk/src/draw.h (revision 20464) +++ trunk/src/draw.h (revision 20465) @@ -62,7 +62,7 @@ int is_current; pcb_pstk_draw_hole_t holetype; pcb_layer_combining_t comb; - pcb_layer_t *layer1; /* first (real) layer in the target group */ + const pcb_layer_t *layer1; /* first (real) layer in the target group */ pcb_layer_type_t shape_mask; /* when gid is invalid, use this for the shapes */ } pstk; Index: trunk/src/obj_pstk.c =================================================================== --- trunk/src/obj_pstk.c (revision 20464) +++ trunk/src/obj_pstk.c (revision 20465) @@ -319,7 +319,7 @@ /*** draw ***/ -static void set_ps_color(pcb_pstk_t *ps, int is_current, pcb_layer_type_t lyt, pcb_layer_t *ly1) +static void set_ps_color(pcb_pstk_t *ps, int is_current, pcb_layer_type_t lyt, const pcb_layer_t *ly1) { const char *color, *layer_color = NULL; char buf[sizeof("#XXXXXX")];