From 0633ac8019749721786766ea0b8f5f9a3b859f4e Mon Sep 17 00:00:00 2001 From: WrinklyNinja Date: Fri, 13 Sep 2013 18:08:31 +0100 Subject: [PATCH] Corrected file URL used in viewer. --- src/gui/viewer.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/gui/viewer.cpp b/src/gui/viewer.cpp index ebf8663b..a449c46c 100644 --- a/src/gui/viewer.cpp +++ b/src/gui/viewer.cpp @@ -22,14 +22,12 @@ */ #include "viewer.h" +#include "../backend/helpers.h" #include -#include - -namespace fs = boost::filesystem; Viewer::Viewer(wxWindow *parent, const wxString& title, const std::string& path) : wxFrame(parent, wxID_ANY, title) { - wxWebView * web = wxWebView::New(this, wxID_ANY, "file://" + fs::absolute(path).string()); + wxWebView * web = wxWebView::New(this, wxID_ANY, boss::ToFileURL(path)); wxBoxSizer* topsizer = new wxBoxSizer(wxVERTICAL);