Explorar o código

Fixed a bug in Table.window

David Sehnal %!s(int64=6) %!d(string=hai) anos
pai
achega
2aa9f047b4
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/mol-data/db/table.ts

+ 1 - 1
src/mol-data/db/table.ts

@@ -105,7 +105,7 @@ namespace Table {
         if (start === 0 && end === table._rowCount) return table;
         if (start === 0 && end === table._rowCount) return table;
         const ret = Object.create(null);
         const ret = Object.create(null);
         const columns = Object.keys(schema);
         const columns = Object.keys(schema);
-        ret._rowCount = view.length;
+        ret._rowCount = end - start;
         ret._columns = columns;
         ret._columns = columns;
         ret._schema = schema;
         ret._schema = schema;
         for (const k of columns) {
         for (const k of columns) {