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:
Seth Hillbrand 2023-03-03 12:39:07 -08:00
parent 94ec6cc362
commit adc7a3ba4a
1 changed files with 1 additions and 0 deletions

View File

@ -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 ) );