Skip to content

Commit

Permalink
bugfix: crash on trsxes with absolute mediaURI and nonexisten target …
Browse files Browse the repository at this point in the history
…file
  • Loading branch information
ladislav.seps committed Jul 29, 2014
1 parent 553a5fb commit 331bd5e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion WpfApplication2/UI/Window1.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -718,8 +718,9 @@ private async void TryLoadAudioFile()
{
FileInfo fiA = new FileInfo(Transcription.MediaURI);
string pAudioFile = fiA.FullName;
if (!fiA.Exists)
if (!fiA.Exists && string.IsNullOrEmpty(System.IO.Path.GetPathRoot(Transcription.MediaURI))) //not exists and relative path
{

FileInfo fi = new FileInfo(Transcription.FileName);
pAudioFile = fi.Directory.FullName + "\\" + Transcription.MediaURI;
fiA = new FileInfo(pAudioFile);
Expand Down

0 comments on commit 331bd5e

Please sign in to comment.