diff --git a/eeschema/dialogs/panel_setup_formatting.cpp b/eeschema/dialogs/panel_setup_formatting.cpp index eb46ec3452..08d81b1677 100644 --- a/eeschema/dialogs/panel_setup_formatting.cpp +++ b/eeschema/dialogs/panel_setup_formatting.cpp @@ -136,8 +136,6 @@ bool PANEL_SETUP_FORMATTING::TransferDataFromWindow() if( m_choiceJunctionDotSize->GetSelection() != wxNOT_FOUND ) settings.m_JunctionSizeChoice = m_choiceJunctionDotSize->GetSelection(); - settings.m_JunctionSize = m_frame->GetSchematicJunctionSize(); - settings.m_IntersheetRefsShow = m_showIntersheetsReferences->GetValue(); settings.m_IntersheetRefsFormatShort = !m_radioFormatStandard->GetValue(); settings.m_IntersheetRefsPrefix = m_prefixCtrl->GetValue(); @@ -152,16 +150,6 @@ bool PANEL_SETUP_FORMATTING::TransferDataFromWindow() m_labelSizeRatioCtrl->GetValue().ToDouble( &dtmp ); settings.m_LabelSizeRatio = dtmp / 100.0; - m_frame->GetRenderSettings()->SetDefaultPenWidth( settings.m_DefaultLineWidth ); - m_frame->GetRenderSettings()->m_LabelSizeRatio = settings.m_LabelSizeRatio; - m_frame->GetRenderSettings()->m_TextOffsetRatio = settings.m_TextOffsetRatio; - m_frame->GetRenderSettings()->m_PinSymbolSize = settings.m_PinSymbolSize; - m_frame->GetRenderSettings()->m_JunctionSize = settings.m_JunctionSize; - - m_frame->GetCanvas()->GetView()->MarkDirty(); - m_frame->GetCanvas()->GetView()->UpdateAllItems( KIGFX::REPAINT ); - m_frame->GetCanvas()->Refresh(); - return true; } diff --git a/eeschema/eeschema_config.cpp b/eeschema/eeschema_config.cpp index 1184bb6c05..33bb3e040b 100644 --- a/eeschema/eeschema_config.cpp +++ b/eeschema/eeschema_config.cpp @@ -116,6 +116,15 @@ void SCH_EDIT_FRAME::ShowSchematicSetupDialog( const wxString& aInitialPage ) SaveProjectSettings(); Kiway().CommonSettingsChanged( false, true ); + + GetRenderSettings()->SetDefaultPenWidth( Schematic().Settings().m_DefaultLineWidth ); + GetRenderSettings()->m_LabelSizeRatio = Schematic().Settings().m_LabelSizeRatio; + GetRenderSettings()->m_TextOffsetRatio = Schematic().Settings().m_TextOffsetRatio; + GetRenderSettings()->m_PinSymbolSize = Schematic().Settings().m_PinSymbolSize; + GetRenderSettings()->m_JunctionSize = Schematic().Settings().m_JunctionSize; + + GetCanvas()->GetView()->MarkDirty(); + GetCanvas()->GetView()->UpdateAllItems( KIGFX::REPAINT ); GetCanvas()->Refresh(); } }