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:
thysson2701
2026-06-12 23:44:37 +02:00
parent 7658e1df81
commit 075f9bb542

View File

@@ -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;
}