]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/event.cpp
Update for bitmap, image on scaling, transparancy,
[wxWidgets.git] / src / common / event.cpp
index 11d0de9e5146d89876bb49e05beb872ed4aced8f..de088d74f0d374e3097c915c5418d9e50fd76853 100644 (file)
@@ -371,7 +371,9 @@ bool wxEvtHandler::SearchEventTable(wxEventTable& table, wxEvent& event)
   int i = 0;
   int commandId = event.GetId();
 
-  while (table.entries[i].m_fn)
+  // BC++ doesn't like while (table.entries[i].m_fn)
+
+  while (table.entries[i].m_fn != 0L)
   {
     if ((event.GetEventType() == table.entries[i].m_eventType) &&
         (table.entries[i].m_id == -1 || // Match, if event spec says any id will do (id == -1)