On Wed, Feb 18, 2004 at 12:14:52PM +0100, Juergen Spitzmueller wrote: > Angus Leeming wrote: > > Can style_ ever be less than '0'? > > Yes, I think it can be -1 in some cases (I forgot which). Also, I've added a > second test. i.e.: > > if (style_ >= 0 && style_ < dialog_->typeCO->count()) > dialog_->typeCO->setCurrentItem(setCurrentItem(style_);
If it is an error to have style_ >= dialog_->typeCO->count() you should assert here... Andre'