reverted to former behavior for special situation when hit-test turns up nothing

This commit is contained in:
dickelbeck 2007-08-04 05:08:19 +00:00
parent 7fe80baf55
commit caa42eafca
3 changed files with 73 additions and 72 deletions

View File

@ -10,6 +10,8 @@ email address.
================================================================================
+ pcbnew
Read-ability formatting, I am playing with a C++ beautifier called uncrustify.
I had to patch it and spent 2 days getting it configured. Patch not
sent upstream yet.
Fixed a bug in "display local ratsnest pad or module": if you had a small
module and the mouse clicked its reference text, the ratnest for
the associated module would not show. The work around was to add

View File

@ -126,7 +126,6 @@ void WinEDA_PcbFrame::OnLeftClick( wxDC* DC, const wxPoint& MousePos )
case ID_PCB_SHOW_1_RATSNEST_BUTT:
DrawStruct = PcbGeneralLocateAndDisplay();
if( DrawStruct )
Show_1_Ratsnest( DrawStruct, DC );
break;

View File

@ -300,14 +300,13 @@ void WinEDA_PcbFrame::Show_1_Ratsnest( EDA_BaseStruct* item, wxDC* DC )
if( g_Show_Ratsnest )
return; // Deja Affich<63>
if( !item )
return;
if( (m_Pcb->m_Status_Pcb & LISTE_CHEVELU_OK) == 0 )
{
Compile_Ratsnest( DC, TRUE );
}
if( item )
{
if( item->m_StructType == TYPEPAD )
{
pt_pad = (D_PAD*) item;
@ -383,6 +382,7 @@ void WinEDA_PcbFrame::Show_1_Ratsnest( EDA_BaseStruct* item, wxDC* DC )
pt_pad = NULL;
}
}
}
/* Effacement complet des selections
* si aucun pad ou module n'a ete localise */