Index: tool_arrow.c =================================================================== --- tool_arrow.c (revision 32708) +++ tool_arrow.c (revision 32709) @@ -120,7 +120,7 @@ box.Y2 = RND_MAX_COORD; /* unselect first if shift key not down */ if (!rnd_gui->shift_is_pressed(rnd_gui) && pcb_select_block(pcb, &box, rnd_false, rnd_false, rnd_false)) - pcb_board_set_changed_flag(rnd_true); + pcb_board_set_changed_flag(PCB, rnd_true); pcb_tool_notify_block(); pcb_crosshair.AttachedBox.Point1.X = hl->tool_x; pcb_crosshair.AttachedBox.Point1.Y = hl->tool_y; @@ -205,7 +205,7 @@ /* unselect first if shift key not down */ if (!rnd_gui->shift_is_pressed(rnd_gui)) { if (pcb_select_block(pcb, &box, rnd_false, rnd_false, rnd_false)) - pcb_board_set_changed_flag(rnd_true); + pcb_board_set_changed_flag(pcb, rnd_true); if (pcb_crosshair_note.Moving) { pcb_crosshair_note.Moving = 0; hl->tool_hit = 0; @@ -216,7 +216,7 @@ gets the same SN. */ pcb_undo_restore_serial(); if (pcb_select_object(PCB)) - pcb_board_set_changed_flag(rnd_true); + pcb_board_set_changed_flag(pcb, rnd_true); else pcb_undo_inc_serial(); /* We didn't select anything new, so, the deselection should get its own SN. */ hl->tool_hit = 0; @@ -230,7 +230,7 @@ pcb_undo_restore_serial(); if (pcb_select_block(pcb, &box, rnd_true, rnd_true, rnd_false)) { - pcb_board_set_changed_flag(rnd_true); + pcb_board_set_changed_flag(pcb, rnd_true); pcb_undo_inc_serial(); } else if (pcb_bumped) Index: tool_buffer.c =================================================================== --- tool_buffer.c (revision 32708) +++ tool_buffer.c (revision 32709) @@ -63,7 +63,7 @@ } if (pcb_buffer_copy_to_layout(pcb, pcb_crosshair.AttachedObject.tx, pcb_crosshair.AttachedObject.ty, keep_ids)) { - pcb_board_set_changed_flag(rnd_true); + pcb_board_set_changed_flag(pcb, rnd_true); rnd_gui->invalidate_all(rnd_gui); } } Index: tool_copy.c =================================================================== --- tool_copy.c (revision 32708) +++ tool_copy.c (revision 32709) @@ -81,7 +81,7 @@ pcb_crosshair.AttachedObject.Ptr2, pcb_crosshair.AttachedObject.Ptr3, pcb_crosshair.AttachedObject.tx - pcb_crosshair.AttachedObject.X, pcb_crosshair.AttachedObject.ty - pcb_crosshair.AttachedObject.Y); pcb_subc_as_board_update(PCB); - pcb_board_set_changed_flag(rnd_true); + pcb_board_set_changed_flag(pcb, rnd_true); } /* reset identifiers */ Index: tool_insert.c =================================================================== --- tool_insert.c (revision 32708) +++ tool_insert.c (revision 32709) @@ -62,6 +62,7 @@ void pcb_tool_insert_notify_mode(rnd_hidlib_t *hl) { + pcb_board_t *pcb = (pcb_board_t *)hl; switch (pcb_crosshair.AttachedObject.State) { /* first notify, lookup object */ case PCB_CH_STATE_FIRST: @@ -98,7 +99,7 @@ pcb_insert_point_in_object(pcb_crosshair.AttachedObject.Type, pcb_crosshair.AttachedObject.Ptr1, pcb_crosshair.AttachedObject.Ptr2, &polyIndex, InsertedPoint.X, InsertedPoint.Y, rnd_false, rnd_false); - pcb_board_set_changed_flag(rnd_true); + pcb_board_set_changed_flag(pcb, rnd_true); pcb_crosshair.AttachedObject.Type = PCB_OBJ_VOID; pcb_crosshair.AttachedObject.State = PCB_CH_STATE_FIRST; @@ -118,7 +119,7 @@ pcb_insert_point_in_object(pcb_crosshair.AttachedObject.Type, pcb_crosshair.AttachedObject.Ptr1, pcb_crosshair.AttachedObject.Ptr2, &polyIndex, InsertedPoint.X, InsertedPoint.Y, rnd_false, rnd_false); - pcb_board_set_changed_flag(rnd_true); + pcb_board_set_changed_flag(pcb, rnd_true); /* reset identifiers */ pcb_crosshair.AttachedObject.Type = PCB_OBJ_VOID; Index: tool_line.c =================================================================== --- tool_line.c (revision 32708) +++ tool_line.c (revision 32709) @@ -416,7 +416,7 @@ pcb_crosshair.AttachedLine.Point2.X = ptr2->Point1.X; pcb_crosshair.AttachedLine.Point2.Y = ptr2->Point1.Y; if ((type = pcb_undo(rnd_true)) == 0) - pcb_board_set_changed_flag(rnd_true); + pcb_board_set_changed_flag(pcb, rnd_true); /* check that the undo was of the right type */ if ((type & PCB_UNDO_CREATE) == 0) { /* wrong undo type, restore anchor points */ @@ -464,7 +464,7 @@ if (pcb_crosshair.AttachedLine.State == PCB_CH_STATE_SECOND) return rnd_false; if (pcb_redo(rnd_true)) { - pcb_board_set_changed_flag(rnd_true); + pcb_board_set_changed_flag(pcb, rnd_true); if (pcb_crosshair.AttachedLine.State != PCB_CH_STATE_FIRST) { pcb_line_t *line = linelist_last(&PCB_CURRLAYER(pcb)->Line); pcb_crosshair.AttachedLine.Point1.X = pcb_crosshair.AttachedLine.Point2.X = line->Point2.X; Index: tool_move.c =================================================================== --- tool_move.c (revision 32708) +++ tool_move.c (revision 32709) @@ -55,6 +55,7 @@ void pcb_tool_move_notify_mode(rnd_hidlib_t *hl) { + pcb_board_t *pcb = (pcb_board_t *)hl; rnd_coord_t dx, dy; switch (pcb_crosshair.AttachedObject.State) { @@ -114,7 +115,7 @@ if (!pcb_marked.user_placed) pcb_crosshair_set_local_ref(0, 0, rnd_false); pcb_subc_as_board_update(PCB); - pcb_board_set_changed_flag(rnd_true); + pcb_board_set_changed_flag(pcb, rnd_true); } else if (pcb_crosshair.extobj_edit != NULL) pcb_extobj_float_geo(pcb_crosshair.extobj_edit); Index: tool_remove.c =================================================================== --- tool_remove.c (revision 32708) +++ tool_remove.c (revision 32709) @@ -81,7 +81,7 @@ pcb_remove_object(type, ptr1, ptr2, ptr3); pcb_undo_inc_serial(); pcb_subc_as_board_update(PCB); - pcb_board_set_changed_flag(rnd_true); + pcb_board_set_changed_flag(pcb, rnd_true); } }