Correct parent symbol for lib_text
The edited symbol should be pulled from the parent window when there is
not an existing text object
(cherry picked from commit 59fc62e898
)
This commit is contained in:
parent
94ec6cc362
commit
adc7a3ba4a
|
@ -164,6 +164,7 @@ bool DIALOG_LIB_TEXT_PROPERTIES::TransferDataToWindow()
|
||||||
{
|
{
|
||||||
SYMBOL_EDITOR_SETTINGS* cfg = m_parent->GetSettings();
|
SYMBOL_EDITOR_SETTINGS* cfg = m_parent->GetSettings();
|
||||||
auto* tools = m_parent->GetToolManager()->GetTool<SYMBOL_EDITOR_DRAWING_TOOLS>();
|
auto* tools = m_parent->GetToolManager()->GetTool<SYMBOL_EDITOR_DRAWING_TOOLS>();
|
||||||
|
symbol = m_parent->GetCurSymbol();
|
||||||
|
|
||||||
m_textSize.SetValue( schIUScale.MilsToIU( cfg->m_Defaults.text_size ) );
|
m_textSize.SetValue( schIUScale.MilsToIU( cfg->m_Defaults.text_size ) );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue