Index: trunk/src/layer.c =================================================================== --- trunk/src/layer.c (revision 5391) +++ trunk/src/layer.c (revision 5392) @@ -1022,7 +1022,7 @@ pcb_layer_t saved_layer; int saved_group; - pcb_undo_add_layer_change(old_index, new_index); + pcb_undo_add_layer_move(old_index, new_index); pcb_undo_inc_serial(); if (old_index < -1 || old_index >= pcb_max_copper_layer) { Index: trunk/src/undo.c =================================================================== --- trunk/src/undo.c (revision 5391) +++ trunk/src/undo.c (revision 5392) @@ -809,7 +809,7 @@ * undo a layer change * returns pcb_true on success */ -static pcb_bool UndoLayerChange(UndoListTypePtr Entry) +static pcb_bool UndoLayerMove(UndoListTypePtr Entry) { LayerChangeTypePtr l = &Entry->Data.LayerChange; int tmp; @@ -1030,9 +1030,9 @@ return (PCB_UNDO_CHANGERADII); break; - case PCB_UNDO_LAYERCHANGE: - if (UndoLayerChange(ptr)) - return (PCB_UNDO_LAYERCHANGE); + case PCB_UNDO_LAYERMOVE: + if (UndoLayerMove(ptr)) + return (PCB_UNDO_LAYERMOVE); break; case PCB_UNDO_NETLISTCHANGE: @@ -1522,12 +1522,12 @@ /* --------------------------------------------------------------------------- * adds a layer change (new, delete, move) to the undo list. */ -void pcb_undo_add_layer_change(int old_index, int new_index) +void pcb_undo_add_layer_move(int old_index, int new_index) { UndoListTypePtr undo; if (!Locked) { - undo = GetUndoSlot(PCB_UNDO_LAYERCHANGE, 0, 0); + undo = GetUndoSlot(PCB_UNDO_LAYERMOVE, 0, 0); undo->Data.LayerChange.old_index = old_index; undo->Data.LayerChange.new_index = new_index; } @@ -1643,7 +1643,7 @@ case PCB_UNDO_CHANGEMASKSIZE: return "changemasksize"; case PCB_UNDO_CHANGEANGLES: return "changeangles"; case PCB_UNDO_CHANGERADII: return "changeradii"; - case PCB_UNDO_LAYERCHANGE: return "layerchange"; + case PCB_UNDO_LAYERMOVE: return "layermove"; case PCB_UNDO_CLEAR: return "clear"; case PCB_UNDO_NETLISTCHANGE: return "netlistchange"; case PCB_UNDO_CHANGEPINNUM: return "changepinnum"; Index: trunk/src/undo.h =================================================================== --- trunk/src/undo.h (revision 5391) +++ trunk/src/undo.h (revision 5392) @@ -63,7 +63,7 @@ void pcb_undo_add_obj_to_change_angles(int, void *, void *, void *); void pcb_undo_add_obj_to_change_radii(int, void *, void *, void *); void pcb_undo_add_obj_to_clear_poly(int, void *, void *, void *, pcb_bool); -void pcb_undo_add_layer_change(int, int); +void pcb_undo_add_layer_move(int, int); void pcb_undo_add_netlist_lib(pcb_lib_t *); void pcb_undo_lock(void); @@ -97,7 +97,7 @@ PCB_UNDO_CHANGECLEARSIZE = 0x004000, /* change clearance size */ PCB_UNDO_CHANGEMASKSIZE = 0x008000, /* change mask size */ PCB_UNDO_CHANGEANGLES = 0x010000, /* change arc angles */ - PCB_UNDO_LAYERCHANGE = 0x020000, /* layer new/delete/move */ + PCB_UNDO_LAYERMOVE = 0x020000, /* layer new/delete/move */ PCB_UNDO_CLEAR = 0x040000, /* clear/restore to polygons */ PCB_UNDO_NETLISTCHANGE = 0x080000, /* netlist change */ PCB_UNDO_CHANGEPINNUM = 0x100000, /* change of pin number */