Don't pass raw urls to logging functions in the wxWebView sample as they can contain percent characters which then cause format string errors.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@67767 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -281,7 +281,7 @@ public:
|
||||
frame->Layout();
|
||||
}
|
||||
|
||||
wxLogMessage("Navigation request to '" + evt.GetHref() + "' (target='" +
|
||||
wxLogMessage("%s", "Navigation request to '" + evt.GetHref() + "' (target='" +
|
||||
evt.GetTarget() + "')");
|
||||
|
||||
wxASSERT(m_browser_ctrl->IsBusy());
|
||||
@@ -301,7 +301,7 @@ public:
|
||||
*/
|
||||
void onNavigationComplete(wxWebNavigationEvent& evt)
|
||||
{
|
||||
wxLogMessage("Navigation complete; url='" + evt.GetHref() + "'");
|
||||
wxLogMessage("%s", "Navigation complete; url='" + evt.GetHref() + "'");
|
||||
updateState();
|
||||
}
|
||||
|
||||
@@ -310,7 +310,7 @@ public:
|
||||
*/
|
||||
void onDocumentLoaded(wxWebNavigationEvent& evt)
|
||||
{
|
||||
wxLogMessage("Document loaded; url='" + evt.GetHref() + "'");
|
||||
wxLogMessage("%s", "Document loaded; url='" + evt.GetHref() + "'");
|
||||
updateState();
|
||||
|
||||
m_browser_ctrl->GetZoom();
|
||||
|
Reference in New Issue
Block a user