Mail Archives: geda-help/2011/10/11/15:56:36
Try this patch:
Author: DJ Delorie <dj AT delorie DOT com> 2011-08-25 01:57:08
Committer: DJ Delorie <dj AT delorie DOT com> 2011-08-25 01:58:23
Parent: a354691f7088c80077658c26268ccbcdfe69356f (Fix texinfo bug in report.c patch)
Child: 12771c69eee43cd5f275a64a031f3947ab172d77 (Change Gtk layer_process() to use colors from Settings, not PCB)
Branches: master, remotes/origin/master, remotes/origin/pcb-20110918
Follows: pcb-20081128-base
Precedes: pcb-20110918-RELEASE
Fix File->Import for elements on back side.
Mirror pasted footprints when replacing back-side elements. Also
clear element cache when reloading the new footprint, to avoid getting a
stale pointer.
Closes-bug: lp-699331
--------------------------------- src/action.c ---------------------------------
index 93c17a2..20dbb0a 100644
@@ -7082,6 +7082,8 @@ ActionElementList (int argc, char **argv, Coord x, Coord y)
er = ElementOrientation (e);
pe = PASTEBUFFER->Data->Element->data;
+ if (!FRONT (e))
+ MirrorElementCoordinates (PASTEBUFFER->Data, pe, pe->MarkY*2 - PCB->MaxHeight);
pr = ElementOrientation (pe);
mx = e->MarkX;
@@ -7105,6 +7107,7 @@ ActionElementList (int argc, char **argv, Coord x, Coord y)
}
/* Now reload footprint */
+ element_cache = NULL;
e = find_element_by_refdes (refdes);
old = ChangeElementText (PCB, PCB->Data, e, NAMEONPCB_INDEX, strdup (refdes));
- Raw text -