guard against NULL win (happens during debug startup of RTTI, Clone test)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57942 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -293,8 +293,11 @@ DEFINE_EVENT_TYPE( wxEVT_WEBKIT_STATE_CHANGED )
|
||||
wxWebKitStateChangedEvent::wxWebKitStateChangedEvent( wxWindow* win )
|
||||
{
|
||||
SetEventType( wxEVT_WEBKIT_STATE_CHANGED);
|
||||
SetEventObject( win );
|
||||
SetId(win->GetId());
|
||||
if ( win )
|
||||
{
|
||||
SetEventObject( win );
|
||||
SetId(win->GetId());
|
||||
}
|
||||
}
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS( wxWebKitBeforeLoadEvent, wxCommandEvent )
|
||||
@@ -305,8 +308,11 @@ wxWebKitBeforeLoadEvent::wxWebKitBeforeLoadEvent( wxWindow* win )
|
||||
{
|
||||
m_cancelled = false;
|
||||
SetEventType( wxEVT_WEBKIT_BEFORE_LOAD);
|
||||
SetEventObject( win );
|
||||
SetId(win->GetId());
|
||||
if ( win )
|
||||
{
|
||||
SetEventObject( win );
|
||||
SetId(win->GetId());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -317,8 +323,11 @@ DEFINE_EVENT_TYPE( wxEVT_WEBKIT_NEW_WINDOW )
|
||||
wxWebKitNewWindowEvent::wxWebKitNewWindowEvent( wxWindow* win )
|
||||
{
|
||||
SetEventType( wxEVT_WEBKIT_NEW_WINDOW);
|
||||
SetEventObject( win );
|
||||
SetId(win->GetId());
|
||||
if ( win )
|
||||
{
|
||||
SetEventObject( win );
|
||||
SetId(win->GetId());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user