CString("off").ToBool() shouldn't be true

This commit is contained in:
Kyle Fuller
2012-03-06 18:00:43 +00:00
parent f44b7fc7c4
commit aa9a629bf3

View File

@@ -970,6 +970,7 @@ bool CString::ToBool() const {
CString sTrimmed = Trim_n();
return (!sTrimmed.Trim_n("0").empty() &&
!sTrimmed.Equals("false") &&
!sTrimmed.Equals("off") &&
!sTrimmed.Equals("no") &&
!sTrimmed.Equals("n"));
}