summaryrefslogtreecommitdiffstats
path: root/Examples
diff options
context:
space:
mode:
Diffstat (limited to 'Examples')
-rw-r--r--Examples/WhisperDesktop/TranscribeDlg.cpp1
1 files changed, 1 insertions, 0 deletions
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 )