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

gEDA-cvs: pcb.git: branch: master updated (6a274b2a8b0a78ee7fb37b275a969bea5f45a2e4)



The branch, master has been updated
       via  6a274b2a8b0a78ee7fb37b275a969bea5f45a2e4 (commit)
      from  25e919d636661c2698ed13d9627b605ad44e423c (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


=========
 Summary
=========

 src/hid/batch/batch.c |    4 ++--
 src/move.c            |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)


=================
 Commit Messages
=================

commit 6a274b2a8b0a78ee7fb37b275a969bea5f45a2e4
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Commit: Peter Clifton <pcjc2@xxxxxxxxx>

    Fix mistaken use of MAX_LAYER instead of max_layer.
    
    (Why this wasn't obvious, I can't possibly imagine ;))
    
    Bug relates to batch HID, and move of text items onto the solder layer.

:100644 100644 cc09564... 407bc3a... M	src/hid/batch/batch.c
:100644 100644 003c2e0... 6f0c82f... M	src/move.c

=========
 Changes
=========

commit 6a274b2a8b0a78ee7fb37b275a969bea5f45a2e4
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Commit: Peter Clifton <pcjc2@xxxxxxxxx>

    Fix mistaken use of MAX_LAYER instead of max_layer.
    
    (Why this wasn't obvious, I can't possibly imagine ;))
    
    Bug relates to batch HID, and move of text items onto the solder layer.

diff --git a/src/hid/batch/batch.c b/src/hid/batch/batch.c
index cc09564..407bc3a 100644
--- a/src/hid/batch/batch.c
+++ b/src/hid/batch/batch.c
@@ -82,8 +82,8 @@ info (int argc, char **argv, int x, int y)
 	 PCB->MaxHeight / 100.0,
 	 PCB->MaxWidth * COOR_TO_MM,
 	 PCB->MaxHeight * COOR_TO_MM);
-  cg = GetLayerGroupNumberByNumber (MAX_LAYER + COMPONENT_LAYER);
-  sg = GetLayerGroupNumberByNumber (MAX_LAYER + SOLDER_LAYER);
+  cg = GetLayerGroupNumberByNumber (max_layer + COMPONENT_LAYER);
+  sg = GetLayerGroupNumberByNumber (max_layer + SOLDER_LAYER);
   for (i=0; i<MAX_LAYER; i++)
     {
       
diff --git a/src/move.c b/src/move.c
index 003c2e0..6f0c82f 100644
--- a/src/move.c
+++ b/src/move.c
@@ -654,7 +654,7 @@ MoveTextToLayerLowLevel (LayerTypePtr Source, TextTypePtr Text,
   r_substitute (Source->text_tree, (BoxType *) & Source->Text[Source->TextN],
 		(BoxType *) Text);
   memset (&Source->Text[Source->TextN], 0, sizeof (TextType));
-  if (GetLayerGroupNumberByNumber (MAX_LAYER + SOLDER_LAYER) ==
+  if (GetLayerGroupNumberByNumber (max_layer + SOLDER_LAYER) ==
       GetLayerGroupNumberByPointer (Destination))
     SET_FLAG (ONSOLDERFLAG, new);
   else




_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs