Skip to content

Commit f1e46c0

Browse files
committed
Fix handling of absolute file references
1 parent 251fafb commit f1e46c0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/fileviewer.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,11 @@ wxFileName FileViewer::GetFilename(wxString ref) const
236236
}
237237
}
238238
}
239+
else if ( filename.FileExists() )
240+
{
241+
// existing absolute filename
242+
return filename;
243+
}
239244

240245
return wxFileName(); // invalid
241246
}

0 commit comments

Comments
 (0)