Index: trunk/src/change.c =================================================================== --- trunk/src/change.c (revision 31320) +++ trunk/src/change.c (revision 31321) @@ -127,9 +127,9 @@ static pcb_opfunc_t ChangeThermalFunctions = { NULL, /* common_pre */ NULL, /* common_post */ - pcb_anyop_change_thermal, /* line */ + pcb_lineop_change_thermal, NULL, - pcb_anyop_change_thermal, /* poly */ + pcb_polyop_change_thermal, NULL, NULL, NULL, /* arc */ Index: trunk/src/obj_arc.c =================================================================== --- trunk/src/obj_arc.c (revision 31320) +++ trunk/src/obj_arc.c (revision 31321) @@ -38,6 +38,7 @@ #include "rotate.h" #include "move.h" #include "conf_core.h" +#include "thermal.h" #include #include "draw_wireframe.h" #include @@ -481,6 +482,11 @@ return arc; } +void *pcb_arcop_change_thermal(pcb_opctx_t *ctx, pcb_layer_t *ly, pcb_arc_t *arc) +{ + return pcb_anyop_change_thermal(ctx, (pcb_any_obj_t *)arc); +} + /* changes the size of an arc */ void *pcb_arcop_change_size(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_arc_t *Arc) { Index: trunk/src/obj_arc_op.h =================================================================== --- trunk/src/obj_arc_op.h (revision 31320) +++ trunk/src/obj_arc_op.h (revision 31321) @@ -52,6 +52,7 @@ void *pcb_arcop_rotate(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_arc_t *Arc); void *pcb_arcop_change_flag(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_arc_t *Arc); void *pcb_arcop_invalidate_label(pcb_opctx_t *ctx, pcb_layer_t *layer, pcb_arc_t *arc); +void *pcb_arcop_change_thermal(pcb_opctx_t *ctx, pcb_layer_t *ly, pcb_arc_t *arc); void *pcb_arc_insert_point(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_arc_t *arc); Index: trunk/src/obj_line.c =================================================================== --- trunk/src/obj_line.c (revision 31320) +++ trunk/src/obj_line.c (revision 31321) @@ -39,6 +39,7 @@ #include "search.h" #include "polygon.h" #include "conf_core.h" +#include "thermal.h" #include #include "rotate.h" #include @@ -830,6 +831,11 @@ return newone; } +void *pcb_lineop_change_thermal(pcb_opctx_t *ctx, pcb_layer_t *ly, pcb_line_t *line) +{ + return pcb_anyop_change_thermal(ctx, (pcb_any_obj_t *)line); +} + /* destroys a line from a layer */ void *pcb_lineop_destroy(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_line_t *Line) { Index: trunk/src/obj_line_op.h =================================================================== --- trunk/src/obj_line_op.h (revision 31320) +++ trunk/src/obj_line_op.h (revision 31321) @@ -54,6 +54,8 @@ void *pcb_lineop_rotate(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_line_t *Line); void *pcb_lineop_change_flag(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_line_t *Line); void *pcb_lineop_invalidate_label(pcb_opctx_t *ctx, pcb_layer_t *layer, pcb_line_t *line); +void *pcb_lineop_change_thermal(pcb_opctx_t *ctx, pcb_layer_t *ly, pcb_line_t *line); + Index: trunk/src/obj_poly.c =================================================================== --- trunk/src/obj_poly.c (revision 31320) +++ trunk/src/obj_poly.c (revision 31321) @@ -40,6 +40,7 @@ #include #include "rotate.h" #include "search.h" +#include "thermal.h" #include #include "conf_core.h" @@ -678,6 +679,11 @@ return polygon; } +void *pcb_polyop_change_thermal(pcb_opctx_t *ctx, pcb_layer_t *ly, pcb_poly_t *poly) +{ + return pcb_anyop_change_thermal(ctx, (pcb_any_obj_t *)poly); +} + /* Handle attempts to change the clearance of a polygon. */ void *pcb_polyop_change_clear_size(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_poly_t *poly) { Index: trunk/src/obj_poly_op.h =================================================================== --- trunk/src/obj_poly_op.h (revision 31320) +++ trunk/src/obj_poly_op.h (revision 31321) @@ -53,5 +53,4 @@ void *pcb_polyop_change_flag(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_poly_t *Polygon); void *pcb_polyop_invalidate_label(pcb_opctx_t *ctx, pcb_layer_t *layer, pcb_poly_t *poly); void *pcb_polyop_change_join(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_poly_t *poly); - - +void *pcb_polyop_change_thermal(pcb_opctx_t *ctx, pcb_layer_t *ly, pcb_poly_t *poly);