Index: trunk/src/change.c =================================================================== --- trunk/src/change.c (revision 4629) +++ trunk/src/change.c (revision 4630) @@ -371,21 +371,6 @@ return (pcb_true); } -/* --------------------------------------------------------------------------- - * changes the nopaste flag of a pad - */ -pcb_bool ChangePaste(PadTypePtr Pad) -{ - if (TEST_FLAG(PCB_FLAG_LOCK, Pad)) - return (pcb_false); - ErasePad(Pad); - AddObjectToFlagUndoList(PCB_TYPE_PAD, Pad, Pad, Pad); - TOGGLE_FLAG(PCB_FLAG_NOPASTE, Pad); - DrawPad(Pad); - Draw(); - return (pcb_true); -} - /* ---------------------------------------------------------------------- * changes the thermals on all selected and visible pins * and/or vias. Returns pcb_true if anything has changed Index: trunk/src/change.h =================================================================== --- trunk/src/change.h (revision 4629) +++ trunk/src/change.h (revision 4630) @@ -85,8 +85,6 @@ pcb_bool ChangeSelectedOctagon(int); pcb_bool SetSelectedOctagon(int); pcb_bool ClrSelectedOctagon(int); -pcb_bool ChangeHole(PinTypePtr); -pcb_bool ChangePaste(PadTypePtr); pcb_bool ChangeObjectSize(int, void *, void *, void *, Coord, pcb_bool); pcb_bool ChangeObject1stSize(int, void *, void *, void *, Coord, pcb_bool); pcb_bool ChangeObjectThermal(int, void *, void *, void *, int); Index: trunk/src/obj_pad.c =================================================================== --- trunk/src/obj_pad.c (revision 4629) +++ trunk/src/obj_pad.c (revision 4630) @@ -139,8 +139,19 @@ close_box(&Pad->BoundingBox); } +/* changes the nopaste flag of a pad */ +pcb_bool ChangePaste(PadTypePtr Pad) +{ + if (TEST_FLAG(PCB_FLAG_LOCK, Pad)) + return (pcb_false); + ErasePad(Pad); + AddObjectToFlagUndoList(PCB_TYPE_PAD, Pad, Pad, Pad); + TOGGLE_FLAG(PCB_FLAG_NOPASTE, Pad); + DrawPad(Pad); + Draw(); + return (pcb_true); +} - /*** ops ***/ /* changes the size of a pad */ Index: trunk/src/obj_pad.h =================================================================== --- trunk/src/obj_pad.h (revision 4629) +++ trunk/src/obj_pad.h (revision 4630) @@ -46,7 +46,9 @@ PadTypePtr CreateNewPad(ElementTypePtr Element, Coord X1, Coord Y1, Coord X2, Coord Y2, Coord Thickness, Coord Clearance, Coord Mask, char *Name, char *Number, FlagType Flags); void SetPadBoundingBox(PadTypePtr Pad); +pcb_bool ChangePaste(PadTypePtr Pad); + /* Rather than move the line bounding box, we set it so the point bounding * boxes are updated too. */ Index: trunk/src/obj_pinvia.h =================================================================== --- trunk/src/obj_pinvia.h (revision 4629) +++ trunk/src/obj_pinvia.h (revision 4630) @@ -51,6 +51,7 @@ PinTypePtr CreateNewPin(ElementTypePtr Element, Coord X, Coord Y, Coord Thickness, Coord Clearance, Coord Mask, Coord DrillingHole, char *Name, char *Number, FlagType Flags); void pcb_add_via(DataType *Data, PinType *Via); void SetPinBoundingBox(PinTypePtr Pin); +pcb_bool ChangeHole(PinTypePtr Via); /* This is the extents of a Pin or Via, depending on whether it's a hole or not. */