diff options
author | Ingo Maier <ingo.maier@epfl.ch> | 2010-04-06 11:43:00 +0000 |
---|---|---|
committer | Ingo Maier <ingo.maier@epfl.ch> | 2010-04-06 11:43:00 +0000 |
commit | a292a87fc5b6145ea3a790780c0d24c83375b228 (patch) | |
tree | 1172913380a3b12230a2196f14c7b5229eec58ce | |
parent | 1cc838b634cb0e11228eb7fd18710703036b8c17 (diff) | |
download | scala-a292a87fc5b6145ea3a790780c0d24c83375b228.tar.gz scala-a292a87fc5b6145ea3a790780c0d24c83375b228.tar.bz2 scala-a292a87fc5b6145ea3a790780c0d24c83375b228.zip |
Fixed #3257
-rw-r--r-- | src/swing/scala/swing/ListView.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/swing/scala/swing/ListView.scala b/src/swing/scala/swing/ListView.scala index c0e99412c1..a15471796c 100644 --- a/src/swing/scala/swing/ListView.scala +++ b/src/swing/scala/swing/ListView.scala @@ -157,12 +157,12 @@ class ListView[A] extends Component { def listData: Seq[A] = peer.getModel match { case model: ModelWrapper => model.items - case model @ _ => new Seq[A] { + case model @ _ => new Seq[A] { selfSeq => def length = model.getSize def iterator = new Iterator[A] { var idx = 0 def next = { idx += 1; apply(idx-1) } - def hasNext = idx < length + def hasNext = idx < selfSeq.length } def apply(n: Int) = model.getElementAt(n).asInstanceOf[A] } |