Browse Source

Fixed a bug in Table.window

David Sehnal 6 years ago
parent
commit
2aa9f047b4
1 changed files with 1 additions and 1 deletions
  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;
         const ret = Object.create(null);
         const columns = Object.keys(schema);
-        ret._rowCount = view.length;
+        ret._rowCount = end - start;
         ret._columns = columns;
         ret._schema = schema;
         for (const k of columns) {