PcbGeneralLocateAndDisplay() can return a TEXT object too
This commit is contained in:
parent
c2be3c9e94
commit
2b6ec786a8
|
@ -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 )
|
||||||
|
|
Loading…
Reference in New Issue