]> git.saurik.com Git - wxWidgets.git/commit
Don't assert if config file contains an invalid boolean value.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 13 Nov 2010 15:03:10 +0000 (15:03 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 13 Nov 2010 15:03:10 +0000 (15:03 +0000)
commit0231d18f1aac3a64066f0b1dd5b1c979210528ea
treed997c7f06f466c5173a74af358493bc318f6252e
parent65571ec7bf8d1b2e2adccab1478dcd7cab82647a
Don't assert if config file contains an invalid boolean value.

Asserts should be only triggered by programming errors, not by user actions,
and the assert checking that the value is either 0 or 1 in
wxConfigBase::DoReadBool() could happen if the user edited the file and put a
wrong value into it.

Replace the assert with a warning message.

See #11437.

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