Changeset 1893


Ignore:
Timestamp:
12/04/06 17:37:18 (13 years ago)
Author:
chris
Message:

browser:
1) fixed problem with infinite loop in CacheIndicator's
paint method that iterated until solved by CacheManager's
thread when it set the ratio. all good now, much quicker.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/plugins/browser/CacheIndicator.java

    r1801 r1893  
    6060    g.drawRect(0,0,getWidth()-1,COMPONENT_HEIGHT - 1); 
    6161 
    62     if(ratio < 1) { 
     62    if(ratio < 1 && ratio != 0) { 
    6363      int [] loadColor = new int[getWidth()]; 
    6464      int [] cacheColor = new int[getWidth()]; 
     
    117117      } 
    118118    } 
    119     else { 
     119    else if (ratio >= 1) { 
    120120      int prevLoad = -1; 
    121121      int startLoad = -1; 
Note: See TracChangeset for help on using the changeset viewer.