fix(stable): wx 3.3 wxWebViewFactoryEdge::GetVersionInfo braucht wxVersionContext
wxUSE_WEBVIEW_EDGE: GetVersionInfo() hat in wx 3.3 ein Pflichtargument (wxVersionContext::RunTime). Mit wxVERSION_NUMBER >= 3300 gegated.
This commit is contained in:
@@ -331,7 +331,12 @@ wxWebView* WebView::CreateWebView(wxWindow * parent, wxString const & url)
|
||||
bool WebView::CheckWebViewRuntime()
|
||||
{
|
||||
wxWebViewFactoryEdge factory;
|
||||
#if wxVERSION_NUMBER >= 3300
|
||||
// wxWidgets 3.3 requires a wxVersionContext argument for GetVersionInfo().
|
||||
auto wxVersion = factory.GetVersionInfo(wxVersionContext::RunTime);
|
||||
#else
|
||||
auto wxVersion = factory.GetVersionInfo();
|
||||
#endif
|
||||
return wxVersion.GetMajor() != 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user