]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/event.cpp
added an error message if a bitmap can't be addedto the image list
[wxWidgets.git] / src / common / event.cpp
index d367b21ec57ee8c7d9447d950e17f9cf2c6b77cb..79580ae5c119a92042b6594ca4805bb0b29de7c9 100644 (file)
@@ -395,7 +395,11 @@ bool wxEvtHandler::SearchEventTable(wxEventTable& table, wxEvent& event)
 
     // BC++ doesn't like while (table.entries[i].m_fn)
 
+#ifdef __SC__
+    while (table.entries[i].m_fn != 0)
+#else
     while (table.entries[i].m_fn != 0L)
+#endif
     {
         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)