diff options
Diffstat (limited to 'cad/pcb/patches/patch-ae')
-rw-r--r-- | cad/pcb/patches/patch-ae | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/cad/pcb/patches/patch-ae b/cad/pcb/patches/patch-ae new file mode 100644 index 00000000000..eefa6fd88a0 --- /dev/null +++ b/cad/pcb/patches/patch-ae @@ -0,0 +1,49 @@ +$NetBSD: patch-ae,v 1.1 2002/05/31 19:56:20 dmcmahill Exp $ + +--- src/move.c.orig Wed May 13 06:29:49 1998 ++++ src/move.c +@@ -359,7 +359,7 @@ + DrawArc(Layer, Arc, 0); + Draw(); + } +- if (((int) Dest == -1) || Dest == Layer) ++ if (((long int) Dest == -1) || Dest == Layer) + return(Arc); + AddObjectToMoveToLayerUndoList(ARC_TYPE, Layer, Arc, Arc); + if (Layer->On) +@@ -391,7 +391,7 @@ + DrawLine(Layer, Line, 0); + Draw(); + } +- if (((int) Dest == -1) || Dest == Layer) ++ if (((long int) Dest == -1) || Dest == Layer) + return(Line); + + AddObjectToMoveToLayerUndoList(LINE_TYPE, Layer, Line, Line); +@@ -473,7 +473,7 @@ + TextTypePtr new; + + /* Dest == -1 means move to silkscreen layer */ +- if (((int) Dest == -1) || (Dest == Layer)) ++ if (((long int) Dest == -1) || (Dest == Layer)) + AddObjectToFlagUndoList(TEXT_TYPE, Layer, Text, Text); + else + AddObjectToMoveToLayerUndoList(TEXT_TYPE, Layer, Text, Text); +@@ -481,7 +481,7 @@ + (TEST_FLAG(ONSILKFLAG, Text) && (PCB->InvisibleObjectsOn || + (TEST_FLAG(ONSOLDERFLAG, Text) !=0) == SWAP_IDENT))) + EraseText(Text); +- if ((int) Dest == -1) ++ if ((long int) Dest == -1) + { + SET_FLAG(ONSILKFLAG, Text); + if (PCB->ElementOn || (TEST_FLAG(ONSOLDERFLAG, Text) !=0) == SWAP_IDENT) +@@ -536,7 +536,7 @@ + PolygonTypePtr new; + int LayerThermFlag, DestThermFlag; + +- if (((int) Dest == -1) || (Layer == Dest)) ++ if (((long int) Dest == -1) || (Layer == Dest)) + return(Polygon); + AddObjectToMoveToLayerUndoList(POLYGON_TYPE, Layer, Polygon, Polygon); + if (Layer->On) |