fixed mixed up "_item" with "_selection"

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@25141 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Dave Wetzel 2007-05-11 10:05:46 +00:00
parent a187fb6a58
commit a94bd64e42

View file

@ -123,7 +123,7 @@ static SEL valueInComponentSEL = NULL;
if (((_list == nil)) ||
((_value != nil) && ((_item == nil) && ([_item isValueSettable] == NO))) ||
(((_string != nil) || (_item != nil)) && (_item == nil)) ||
((_selection != nil) && ([_item isValueSettable] == NO))) {
((_selection != nil) && ([_selection isValueSettable] == NO))) {
[NSException raise:NSInvalidArgumentException
format:@"%s: 'list' must be present. 'item' must not be a constant if 'value' is present. Cannot have 'displayString' or 'value' without 'item'. 'selection' must not be a constant if present.",