Permalink
Browse files

Fixed iterator for MolTableSelection

  • Loading branch information...
1 parent aca6f2c commit 1dc193ae0c67cc25bc1fe7c040627db8599a9eb7 Arvid Berg committed with Apr 6, 2010
View
2 ...oclipse.cdk.ui.sdfeditor/src/net/bioclipse/cdk/ui/sdfeditor/editor/MolTableSelection.java
@@ -93,7 +93,7 @@ public Object getFirstElement() {
int index = 0;
public boolean hasNext() {
- return index < selection.length;
+ return index + 1 < selection.length;
}
public ICDKMolecule next() {

0 comments on commit 1dc193a

Please sign in to comment.