changeset 2224:5df87cfb45ee

Back out a small portion of the previous changeset (for RT-25098) due to failing unit tests.
author jgiles
date Mon, 14 Jan 2013 12:13:44 +1300
parents 6ac0f47a252c
children 962890a91cb7
files javafx-ui-controls/src/javafx/scene/control/ListCell.java
diffstat 1 files changed, 1 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/javafx-ui-controls/src/javafx/scene/control/ListCell.java	Mon Jan 14 11:49:50 2013 +1300
+++ b/javafx-ui-controls/src/javafx/scene/control/ListCell.java	Mon Jan 14 12:13:44 2013 +1300
@@ -141,20 +141,7 @@
      */
     private final ListChangeListener itemsListener = new ListChangeListener() {
         @Override public void onChanged(ListChangeListener.Change c) {
-            boolean needsUpdate = false;
-            while (c.next()) {
-                if (!c.wasAdded() && !c.wasRemoved()) {
-                    int idx = getIndex();
-                    needsUpdate = c.getFrom() <= idx && idx <= c.getTo();
-                    break;
-                }
-            }
-
-            if (needsUpdate) {
-                // Only call updateItem if there were items permuted, and only if
-                // the index of the permuted range includes this item.
-                updateItem();
-            }
+            updateItem();
         }
     };