]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/combocmn.cpp
Fix compilation error in recent change to wxSizeEvent generation.
[wxWidgets.git] / src / common / combocmn.cpp
index 59297fe943154c39ad5f75a0d5be9a97c2041d6b..8b2ff1940bd026371c957bab348940dc9438762c 100644 (file)
@@ -1048,7 +1048,7 @@ bool wxComboCtrlBase::Create(wxWindow *parent,
     if ( size.x > 0 && size.y > 0 )
     {
         wxSizeEvent evt(size,GetId());
     if ( size.x > 0 && size.y > 0 )
     {
         wxSizeEvent evt(size,GetId());
-        event.SetEventObject(this);
+        evt.SetEventObject(this);
         GetEventHandler()->AddPendingEvent(evt);
     }
 
         GetEventHandler()->AddPendingEvent(evt);
     }
 
@@ -1752,7 +1752,7 @@ void wxComboCtrlBase::RecalcAndRefresh()
     if ( IsCreated() )
     {
         wxSizeEvent evt(GetSize(),GetId());
     if ( IsCreated() )
     {
         wxSizeEvent evt(GetSize(),GetId());
-        event.SetEventObject(this);
+        evt.SetEventObject(this);
         GetEventHandler()->ProcessEvent(evt);
         Refresh();
     }
         GetEventHandler()->ProcessEvent(evt);
         Refresh();
     }