libedit: move field bug

This commit is contained in:
faa 2009-06-15 07:40:54 +00:00
parent 18e9b0bfd4
commit 91d00f3215
1 changed files with 1 additions and 1 deletions

View File

@ -379,7 +379,7 @@ LibDrawField* WinEDA_LibeditFrame::LocateField( EDA_LibComponentStruct* LibEntry
wxPoint refpos;
refpos.x = GetScreen()->m_Curseur.x;
refpos.y = -GetScreen()->m_Curseur.y; // Y axis is from bottom to top in library
refpos.y = GetScreen()->m_Curseur.y; // Y axis is from bottom to top in library
/* Test reference */
if( LibEntry->m_Name.HitTest( refpos ) )
return &LibEntry->m_Name;