[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
gEDA-cvs: pcb.git: branch: master updated (aa357bf1ad609487f42db9c54b320087837898dc)
The branch, master has been updated
via aa357bf1ad609487f42db9c54b320087837898dc (commit)
from 53bd26d2735fd8e0a443bc724e2e4f7bfaca85cc (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/search.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
=================
Commit Messages
=================
commit aa357bf1ad609487f42db9c54b320087837898dc
Author: Peter Clifton (none) <peterc@paramita-desktop-2>
Commit: Peter Clifton <peterc@paramita-desktop-2.(none)>
From 224cea120af8989e553944cd5a81b0034d1ec50c Mon Sep 17 00:00:00 2001
Subject: [PATCH] search.c: Don't allow selecting pads or pins of locked elements
The locked flag test was mistakenly being applied ot the
pad or pin its-self, not the parent element.
:100644 100644 3fafcd4... ff86bc7... M src/search.c
=========
Changes
=========
commit aa357bf1ad609487f42db9c54b320087837898dc
Author: Peter Clifton (none) <peterc@paramita-desktop-2>
Commit: Peter Clifton <peterc@paramita-desktop-2.(none)>
From 224cea120af8989e553944cd5a81b0034d1ec50c Mon Sep 17 00:00:00 2001
Subject: [PATCH] search.c: Don't allow selecting pads or pins of locked elements
The locked flag test was mistakenly being applied ot the
pad or pin its-self, not the parent element.
diff --git a/src/search.c b/src/search.c
index 3fafcd4..ff86bc7 100644
--- a/src/search.c
+++ b/src/search.c
@@ -115,7 +115,7 @@ pinorvia_callback (const BoxType * box, void *cl)
struct ans_info *i = (struct ans_info *) cl;
PinTypePtr pin = (PinTypePtr) box;
- if (TEST_FLAG (i->locked, pin))
+ if (TEST_FLAG (i->locked, *(AnyObjectType **)i->ptr1))
return 0;
if (!IsPointOnPin (PosX, PosY, SearchRadius, pin))
@@ -182,7 +182,7 @@ pad_callback (const BoxType * b, void *cl)
PadTypePtr pad = (PadTypePtr) b;
struct ans_info *i = (struct ans_info *) cl;
- if (TEST_FLAG (i->locked, pad))
+ if (TEST_FLAG (i->locked, *(AnyObjectType **)i->ptr1))
return 0;
if (FRONT (pad) || i->BackToo)
_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs