Change line-end encoding of multi-line textbox.

Fixes: lp:1836757
* https://bugs.launchpad.net/kicad/+bug/1836757
This commit is contained in:
Jeff Young 2019-07-16 20:45:18 +01:00
parent ba7ad7ddf4
commit 920f128cc7
1 changed files with 2 additions and 2 deletions

View File

@ -28,12 +28,10 @@
#include <base_units.h> #include <base_units.h>
#include <sch_validators.h> #include <sch_validators.h>
#include <tool/tool_manager.h> #include <tool/tool_manager.h>
#include <sch_draw_panel.h>
#include <general.h> #include <general.h>
#include <gr_text.h> #include <gr_text.h>
#include <confirm.h> #include <confirm.h>
#include <sch_text.h> #include <sch_text.h>
#include <typeinfo>
#include <widgets/unit_binder.h> #include <widgets/unit_binder.h>
#include <dialog_edit_label_base.h> #include <dialog_edit_label_base.h>
#include <kicad_string.h> #include <kicad_string.h>
@ -116,6 +114,8 @@ DIALOG_LABEL_EDITOR::DIALOG_LABEL_EDITOR( SCH_EDIT_FRAME* aParent, SCH_TEXT* aTe
default: SetTitle( _( "Text Properties" ) ); break; default: SetTitle( _( "Text Properties" ) ); break;
} }
m_valueMultiLine->SetEOLMode( wxSTC_EOL_LF );
if( m_CurrentText->IsMultilineAllowed() ) if( m_CurrentText->IsMultilineAllowed() )
{ {
m_activeTextCtrl = m_valueMultiLine; m_activeTextCtrl = m_valueMultiLine;