xmlgraphics-batik-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vha...@apache.org
Subject cvs commit: xml-batik/sources/org/apache/batik/apps/svgbrowser Main.java
Date Sat, 22 Jun 2002 10:09:53 GMT
vhardy      2002/06/22 03:09:52

  Modified:    sources/org/apache/batik/apps/svgbrowser Main.java
  Log:
  Fixed problem with last entry (most recent) in history initialization
  
  Revision  Changes    Path
  1.40      +5 -5      xml-batik/sources/org/apache/batik/apps/svgbrowser/Main.java
  
  Index: Main.java
  ===================================================================
  RCS file: /home/cvs/xml-batik/sources/org/apache/batik/apps/svgbrowser/Main.java,v
  retrieving revision 1.39
  retrieving revision 1.40
  diff -u -r1.39 -r1.40
  --- Main.java	21 Jun 2002 16:35:13 -0000	1.39
  +++ Main.java	22 Jun 2002 10:09:52 -0000	1.40
  @@ -786,13 +786,13 @@
               maxVisitedURIs = 0;
           }
   
  -        while (lastVisited.size() > maxVisitedURIs) {
  -            lastVisited.removeElementAt(0);
  -        } 
  -
           if (lastVisited.contains(uri)) {
               lastVisited.removeElement(uri);
           }
  +
  +        while (lastVisited.size() > 0 && lastVisited.size() > (maxVisitedURIs-1))
{
  +            lastVisited.removeElementAt(0);
  +        } 
   
           if (maxVisitedURIs > 0) {
               lastVisited.addElement(uri);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-dev-help@xml.apache.org


Mime
View raw message