From 920f128cc7b5e7d76aca7feb5ca68385c42fcce6 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Tue, 16 Jul 2019 20:45:18 +0100 Subject: [PATCH] Change line-end encoding of multi-line textbox. Fixes: lp:1836757 * https://bugs.launchpad.net/kicad/+bug/1836757 --- eeschema/dialogs/dialog_edit_label.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eeschema/dialogs/dialog_edit_label.cpp b/eeschema/dialogs/dialog_edit_label.cpp index 445497d6a3..2135b027bd 100644 --- a/eeschema/dialogs/dialog_edit_label.cpp +++ b/eeschema/dialogs/dialog_edit_label.cpp @@ -28,12 +28,10 @@ #include #include #include -#include #include #include #include #include -#include #include #include #include @@ -116,6 +114,8 @@ DIALOG_LABEL_EDITOR::DIALOG_LABEL_EDITOR( SCH_EDIT_FRAME* aParent, SCH_TEXT* aTe default: SetTitle( _( "Text Properties" ) ); break; } + m_valueMultiLine->SetEOLMode( wxSTC_EOL_LF ); + if( m_CurrentText->IsMultilineAllowed() ) { m_activeTextCtrl = m_valueMultiLine;