Root/
| 1 | When working with a component that contains multiple independent units, |
| 2 | KiCad warns about pin locations being occupied even if the conflicting |
| 3 | pin is in a different unit. |
| 4 | |
| 5 | I've attached a patch that suppresses the warning if the pins are in |
| 6 | different units and if we're in pin-by-pin mode, and thus conflicts |
| 7 | can neither occur at the GUI nor in the underlying model. |
| 8 | |
| 9 | - Werner |
| 10 | |
| 11 | --- |
| 12 | |
| 13 | Index: kicad/eeschema/pinedit.cpp |
| 14 | =================================================================== |
| 15 | --- kicad.orig/eeschema/pinedit.cpp 2010-04-28 04:34:54.000000000 -0300 |
| 16 | +++ kicad/eeschema/pinedit.cpp 2010-04-28 05:35:24.000000000 -0300 |
| 17 | @@ -231,6 +231,11 @@ |
| 18 | if( Pin == CurrentPin || newpos != Pin->m_Pos || Pin->m_Flags ) |
| 19 | continue; |
| 20 | |
| 21 | + if( g_EditPinByPinIsOn && |
| 22 | + Pin->m_Unit != CurrentPin->m_Unit && |
| 23 | + Pin->m_Unit && CurrentPin->m_Unit ) |
| 24 | + continue; |
| 25 | + |
| 26 | if( ask_for_pin && !g_EditPinByPinIsOn ) |
| 27 | { |
| 28 | DrawPanel->m_IgnoreMouseEvents = true; |
| 29 |
Branches:
master
