You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ah...@apache.org on 2019/12/04 23:24:20 UTC
[royale-asjs] branch develop updated: didn't check range properly.
Should fix #607
This is an automated email from the ASF dual-hosted git repository.
aharui pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
The following commit(s) were added to refs/heads/develop by this push:
new fdc1f23 didn't check range properly. Should fix #607
fdc1f23 is described below
commit fdc1f23f8941054597e38527c512991854306431
Author: Alex Harui <ah...@apache.org>
AuthorDate: Wed Dec 4 15:24:05 2019 -0800
didn't check range properly. Should fix #607
---
.../src/main/royale/org/apache/royale/html/beads/VirtualListView.as | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/VirtualListView.as b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/VirtualListView.as
index 6cb55ca..344ce7a 100644
--- a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/VirtualListView.as
+++ b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/VirtualListView.as
@@ -86,7 +86,7 @@ package org.apache.royale.html.beads
if (index < firstIndex)
return null;
- if (index > (firstIndex + contentView.numElements))
+ if (index >= (firstIndex + contentView.numElements))
return null;
return contentView.getElementAt(index - firstIndex + firstElementIndex) as IItemRenderer;