1. In Pcbnew set a clearance >0 in "Design Rules"->Clearance for the default netclass
2. Open the footprint editor -> Clearance is set to zero in Pcbnew.
This is done in pcbnew/modulframe.cpp:244 ff :
244 SetBoard( new BOARD() );
245 // In modedit, the default net clearance is not known.
246 // (it depends on the actual board)
247 // So we do not show the default clearance, by setting it to 0
248 // The footprint or pad specific clearance will be shown
249 GetBoard()->GetDesignSettings().GetDefault()->SetClearance( 0 );
In line 249 the global defaults object is returned and its clearance attribute set to zero.
No, the bug is still there and easy to reproduce:
1. In Pcbnew set a clearance >0 in "Design Rules"->Clearance for the default netclass
2. Open the footprint editor -> Clearance is set to zero in Pcbnew.
This is done in pcbnew/ modulframe. cpp:244 ff :
244 SetBoard( new BOARD() ); )->GetDesignSet tings() .GetDefault( )->SetClearance ( 0 );
245 // In modedit, the default net clearance is not known.
246 // (it depends on the actual board)
247 // So we do not show the default clearance, by setting it to 0
248 // The footprint or pad specific clearance will be shown
249 GetBoard(
In line 249 the global defaults object is returned and its clearance attribute set to zero.