Commit 2b6ec786 authored by dickelbeck's avatar dickelbeck

PcbGeneralLocateAndDisplay() can return a TEXT object too

parent c2be3c9e
...@@ -326,7 +326,9 @@ void WinEDA_PcbFrame::SendMessageToEESCHEMA( EDA_BaseStruct* objectToSync ) ...@@ -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 )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment