Index: src/const.h =================================================================== --- src/const.h (revision 59) +++ src/const.h (revision 60) @@ -216,6 +216,7 @@ /* also pinout text for pins is vertical */ #define VISITFLAG 0x8000 /* marker to avoid re-visiting an object */ #define NONETLISTFLAG 0x10000 /* element is not on the netlist and should not interfere with the netlist */ +#define MINCUTFLAG 0x20000 /* used by the mincut short find code */ /* --------------------------------------------------------------------------- * PCB flags Index: src/rats.c =================================================================== --- src/rats.c (revision 59) +++ src/rats.c (revision 60) @@ -392,9 +392,14 @@ } } + /* perform a search using MINCUTFLAG, calling back proc_short_cb() with the connections */ old_cb = find_callback; find_callback = proc_short_cb; - LookupConnection (x, y, false, 1, FOUNDFLAG); + SaveFindFlag(MINCUTFLAG); + LookupConnection (x, y, false, 1, MINCUTFLAG); + ResetFoundLinesAndPolygons(false); + ResetFoundPinsViasAndPads(false); + RestoreFindFlag(); find_callback = old_cb; }