Enable usage of SetPage() with empty URL
This commit is contained in:
parent
b4359ca33d
commit
f8f93a9cab
1 changed files with 6 additions and 1 deletions
|
|
@ -597,8 +597,13 @@ void wxWebViewChromium::SetEditable(bool enable)
|
|||
|
||||
void wxWebViewChromium::DoSetPage(const wxString& html, const wxString& baseUrl)
|
||||
{
|
||||
wxString pageBaseUrl = baseUrl;
|
||||
// CEF needs a baseURL that is not empty, set one if not specified
|
||||
if(pageBaseUrl.empty())
|
||||
pageBaseUrl = "file://";
|
||||
|
||||
m_clientHandler->GetBrowser()->GetMainFrame()->LoadString(html.ToStdString(),
|
||||
baseUrl.ToStdString());
|
||||
pageBaseUrl.ToStdString());
|
||||
}
|
||||
|
||||
wxWebViewZoom wxWebViewChromium::GetZoom() const
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue