diff --git a/common/gestfich.cpp b/common/gestfich.cpp index 8a853f7c95..ef5e425180 100644 --- a/common/gestfich.cpp +++ b/common/gestfich.cpp @@ -358,7 +358,7 @@ bool OpenPDF( const wxString& file ) } else { - if( wxLaunchDefaultApplication( file ) ) + if( wxLaunchDefaultApplication( filename ) ) return true; // If launching the system default PDF viewer fails, fall through with empty command