summaryrefslogtreecommitdiff
path: root/src/swing
diff options
context:
space:
mode:
authorIngo Maier <ingo.maier@epfl.ch>2010-04-06 11:43:00 +0000
committerIngo Maier <ingo.maier@epfl.ch>2010-04-06 11:43:00 +0000
commita292a87fc5b6145ea3a790780c0d24c83375b228 (patch)
tree1172913380a3b12230a2196f14c7b5229eec58ce /src/swing
parent1cc838b634cb0e11228eb7fd18710703036b8c17 (diff)
downloadscala-a292a87fc5b6145ea3a790780c0d24c83375b228.tar.gz
scala-a292a87fc5b6145ea3a790780c0d24c83375b228.tar.bz2
scala-a292a87fc5b6145ea3a790780c0d24c83375b228.zip
Fixed #3257
Diffstat (limited to 'src/swing')
-rw-r--r--src/swing/scala/swing/ListView.scala4
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]
}