Author: bklaas
Date: Tue Feb 26 15:00:41 2008
New Revision: 2057

URL: http://svn.slimdevices.com?rev=2057&root=Jive&view=rev
Log:
Bug: 7337
Description: don't erroneously request chunk that returns a null count

Modified:
    branches/7.0/jive/src/pkg/jive/share/applets/SlimBrowser/DB.lua

Modified: branches/7.0/jive/src/pkg/jive/share/applets/SlimBrowser/DB.lua
URL: 
http://svn.slimdevices.com/branches/7.0/jive/src/pkg/jive/share/applets/SlimBrowser/DB.lua?rev=2057&root=Jive&r1=2056&r2=2057&view=diff
==============================================================================
--- branches/7.0/jive/src/pkg/jive/share/applets/SlimBrowser/DB.lua (original)
+++ branches/7.0/jive/src/pkg/jive/share/applets/SlimBrowser/DB.lua Tue Feb 26 
15:00:41 2008
@@ -235,7 +235,11 @@
        -- load last chunk
        local lastKey = math.modf(self.last_chunk.count / BLOCK_SIZE)
        if not self.store[lastKey] then
-               return lastKey * BLOCK_SIZE, BLOCK_SIZE
+               if lastKey * BLOCK_SIZE != self.last_chunk.count then
+                       return lastKey * BLOCK_SIZE, BLOCK_SIZE
+               else
+                       return lastKey * BLOCK_SIZE - 1, BLOCK_SIZE
+               end
        end
 
        -- otherwise load in the direction of scrolling

_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/cgi-bin/mailman/listinfo/jive-checkins

Reply via email to