text boxes: remember to add the original newline characters back in!

Fixes https://gitlab.com/kicad/code/kicad/-/issues/10665
This commit is contained in:
Roberto Fernandez Bautista 2022-01-30 14:34:57 +00:00
parent 6cf170c2c9
commit 8393e02524
1 changed files with 4 additions and 0 deletions

View File

@ -473,6 +473,10 @@ void FONT::LinebreakText( wxString& aText, int aColumnWidth, const VECTOR2I& aSi
jj++; jj++;
} }
// Add the newlines back onto the string
if( ii != ( textLines.Count() - 1 ) )
aText += '\n';
} }
} }