]> source.dussan.org Git - tigervnc.git/commitdiff
[Bugfix] Saving actual numbers of records read from the .fbi file.
authorConstantin Kaplinsky <const@tightvnc.com>
Fri, 20 Jun 2008 12:21:57 +0000 (12:21 +0000)
committerConstantin Kaplinsky <const@tightvnc.com>
Fri, 20 Jun 2008 12:21:57 +0000 (12:21 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2605 3789f03b-4d11-0410-bbf8-ca57d06f2519

java/src/com/tightvnc/rfbplayer/FbsConnection.java

index 66d9e54b50aa55ea94908ae833c2966754e97fdb..3dc2cf596ff44e52021369cb4aa0ff80c96c8fbf 100644 (file)
@@ -35,6 +35,7 @@ public class FbsConnection {
 
   /** Index data loaded from the .fbi file. */
   FbsEntryPoint[] idx;
+  int numIndexRecords;
 
   FbsConnection(String fbsLocation, String indexLocationPrefix, Applet applet)
       throws MalformedURLException {
@@ -57,6 +58,7 @@ public class FbsConnection {
 
     // Try to load the .fbi index file.
     idx = null;
+    numIndexRecords = 0;
     loadIndex();
   }
 
@@ -134,6 +136,7 @@ public class FbsConnection {
         return;
       }
       idx = newIndex;
+      numIndexRecords = numRecordsRead;
       System.err.println("Loaded index data, " + numRecordsRead + " records");
     }
   }