Don't pass logs at unknown levels to wxLog::DoLogRecord() from wxLogGui.
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 26 Jan 2010 12:33:34 +0000 (12:33 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 26 Jan 2010 12:33:34 +0000 (12:33 +0000)
commit6900a89752a9da56f653e388f2248e9e204a9f85
tree9d3189aab5f375a1bbfd9cc7a72f759b19f1c065
parentc9980eb87155735ccb5d9589029dfa768199adff
Don't pass logs at unknown levels to wxLog::DoLogRecord() from wxLogGui.

This results in an assert in DoLogText() which is not implemented in the base
class but ends up being called as DoLogTextAtLevel() doesn't know how to
handle non-standard log levels otherwise. This assert happened if you simply
called wxLogMessage(wxLOG_User, ...) in the program.

Just ignore messages at unknown log levels instead in wxLogGui, by definition
it can't handle them anyhow.

See also r63167.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63275 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/generic/logg.cpp