summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
bc0eb46)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28803
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
void wxHtmlPrintout::SetHtmlFile(const wxString& htmlfile)
{
wxFileSystem fs;
void wxHtmlPrintout::SetHtmlFile(const wxString& htmlfile)
{
wxFileSystem fs;
- wxFSFile *ff = fs.OpenFile(htmlfile);
+ wxFSFile *ff;
+
+ if (wxFileExists(htmlfile))
+ ff = fs.OpenFile(wxFileSystem::FileNameToURL(htmlfile));
+ else
+ ff = fs.OpenFile(htmlfile);