wide selection in trees under aqua laf + deferred icon tree cache invalidation fix...
[idea/community.git] / platform / lang-impl / src / com / intellij / ui / DeferredIconImpl.java
index a11affc7279c436415d04a6e2aa74bf3b02f6091..53fa5b1932d6a6c7db9333187fccb1e0d49dc5ac 100644 (file)
@@ -106,11 +106,8 @@ public class DeferredIconImpl<T> implements DeferredIcon {
                 if (target instanceof JTree) {
                   final TreeUI ui = ((JTree)target).getUI();
                   if (ui instanceof BasicTreeUI) {
-                    // yep, reset size cache
-                    int indent = ((Integer)UIManager.get("Tree.leftChildIndent")).intValue();
-                    if (((BasicTreeUI)ui).getLeftChildIndent() != indent) {
-                      ((BasicTreeUI)ui).setLeftChildIndent(indent);
-                    }
+                    // this call is "fake" and only need to reset tree layout cache
+                    ((BasicTreeUI)ui).setLeftChildIndent(((Integer)UIManager.get("Tree.leftChildIndent")).intValue());
                   }
                 }
               }