[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: gEDA-user: PCB CTRL-H ChangeHole?



> How do I switch from plated to non-lated hole and back, with no size
> change?

Try this simple change; it removes the size change code completely.  I
won't commit it, though, until someone explains why it was changing
the size in the first place - there might be a good reason for the old
way.

Index: change.c
===================================================================
RCS file: /cvsroot/pcb/pcb/src/change.c,v
retrieving revision 1.20
diff -p -2 -r1.20 change.c
*** change.c	18 Apr 2004 14:12:07 -0000	1.20
--- change.c	16 May 2004 15:00:41 -0000
*************** ChangeHole (PinTypePtr Via)
*** 1066,1069 ****
--- 1066,1070 ----
    AddObjectToFlagUndoList (VIA_TYPE, Via, Via, Via);
    TOGGLE_FLAG (HOLEFLAG, Via);
+ #if 0
    if (TEST_FLAG (HOLEFLAG, Via))
      {
*************** ChangeHole (PinTypePtr Via)
*** 1076,1079 ****
--- 1077,1081 ----
        Via->DrillingHole = Via->Thickness - MIN_PINORVIACOPPER;
      }
+ #endif
    DrawVia (Via, 0);
    Draw ();