PcbGeneralLocateAndDisplay() can return a TEXT object too

This commit is contained in:
dickelbeck 2007-08-14 23:09:01 +00:00
parent c2be3c9e94
commit 2b6ec786a8
1 changed files with 3 additions and 1 deletions

View File

@ -326,7 +326,9 @@ void WinEDA_PcbFrame::SendMessageToEESCHEMA( EDA_BaseStruct* objectToSync )
if( objectToSync->m_StructType == TYPEMODULE ) if( objectToSync->m_StructType == TYPEMODULE )
module = (MODULE*) objectToSync; module = (MODULE*) objectToSync;
else if( objectToSync->m_StructType == TYPEPAD ) else if( objectToSync->m_StructType == TYPEPAD )
module = (MODULE*)((D_PAD*)objectToSync)->m_Parent; module = (MODULE*) objectToSync->m_Parent;
else if( objectToSync->m_StructType == TYPETEXTEMODULE )
module = (MODULE*) objectToSync->m_Parent;
// ask only for the reference for now, maybe pins later. // ask only for the reference for now, maybe pins later.
if( module ) if( module )