Index: smartdisperse.c =================================================================== --- smartdisperse.c (revision 5022) +++ smartdisperse.c (revision 5023) @@ -85,7 +85,7 @@ pcb_element_move(PCB->Data, element, dx, dy); /* and add to the undo list so we can undo this operation */ - AddObjectToMoveUndoList(PCB_TYPE_ELEMENT, NULL, NULL, element, dx, dy); + pcb_undo_add_obj_to_move(PCB_TYPE_ELEMENT, NULL, NULL, element, dx, dy); /* keep track of how tall this row is */ minx += element->BoundingBox.X2 - element->BoundingBox.X1 + GAP;