From 279da31e18e0366a9272ca083939211594a07c0c Mon Sep 17 00:00:00 2001 From: Konstantin Date: Fri, 20 Jan 2023 20:31:33 +0100 Subject: UX bugfix, weird output path when a copy-pasted input path ends with a space --- Examples/WhisperDesktop/TranscribeDlg.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'Examples') diff --git a/Examples/WhisperDesktop/TranscribeDlg.cpp b/Examples/WhisperDesktop/TranscribeDlg.cpp index 0e05827..86851f1 100644 --- a/Examples/WhisperDesktop/TranscribeDlg.cpp +++ b/Examples/WhisperDesktop/TranscribeDlg.cpp @@ -176,6 +176,7 @@ void TranscribeDlg::setOutputPath( const CString& input ) return; const LPCTSTR ext = outputExtensions[ format ]; CString path = input; + path.Trim(); const bool renamed = PathRenameExtension( path.GetBufferSetLength( path.GetLength() + 4 ), ext ); path.ReleaseBuffer(); if( !renamed ) -- cgit v1.2.3