1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-24 16:20:05 +02:00

Fix extra spaces

This commit is contained in:
James Crook 2018-02-08 21:42:20 +00:00 committed by Paul Licameli
parent 860110ff2d
commit fa1cedb044

View File

@ -326,9 +326,12 @@ void LongMessageDialog::AcceptText( const wxString & Text )
void LongMessageDialog::Flush()
{
if( pDlg ){
pDlg->mText += "\n\n";
pDlg->mTextCtrl->SetValue( pDlg->mText );
pDlg->mTextCtrl->ShowPosition( pDlg->mTextCtrl->GetLastPosition() );
if( !pDlg->mText.EndsWith( "\n\n" ))
{
pDlg->mText += "\n\n";
pDlg->mTextCtrl->SetValue( pDlg->mText );
pDlg->mTextCtrl->ShowPosition( pDlg->mTextCtrl->GetLastPosition() );
}
}
}