[Mesquitelist] CategoricalData.setStateName bug?

Sam Donnelly samd at seas.upenn.edu
Thu Nov 5 10:06:45 PST 2009


Hi,

It looks to me like there's a bug in  
mesquite.categ.lib.CategoricalData.setStateName(...) in at least  
revision 6240 of the trunk:

Here's the first couple of lines
	/** sets state name of state "state" of character ic to name */
	public void setStateName(int ic, int state, String name) { //todo:  
check if in bounds
		if (ic< 1 || ic >= numChars)
			return;


Should that be "ic < 0" instead of "ic < 1"? Otherwise, it doesn't  
seem to allow setting state names for the first column of the matrix.

thanks!

Sam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mesquiteproject.org/pipermail/mesquitelist/attachments/20091105/dce5c68d/attachment.html 


More information about the Mesquitelist mailing list