fix PY-14453

This commit is contained in:
Alexander Marchuk
2014-11-19 17:29:26 +03:00
parent 84c61616dc
commit 00b2f01590
2 changed files with 2 additions and 4 deletions
-2
View File
@@ -966,8 +966,6 @@ class InternalGetVariable(InternalThreadCommand):
#=======================================================================================================================
# InternalGetArray
#=======================================================================================================================
from pydevd_vars import getVariable
class InternalGetArray(InternalThreadCommand):
def __init__(self, seq, roffset, coffset, rows, cols, format, thread_id, frame_id, scope, attrs):
self.sequence = seq
@@ -173,11 +173,11 @@ public class AsyncArrayTableModel extends AbstractTableModel {
int rows = data[0].length;
for (int roffset = 0; roffset < rows / CHUNK_ROW_SIZE; roffset++) {
for (int coffset = 0; coffset < cols / CHUNK_COL_SIZE; coffset++) {
Pair<Integer, Integer> key = itemToChunkKey(roffset * CHUNK_ROW_SIZE, coffset * CHUNK_COL_SIZE);
Pair<Integer, Integer> key = itemToChunkKey(roffset * CHUNK_ROW_SIZE, roffset * CHUNK_ROW_SIZE);
final Object[][] chunkData = new Object[CHUNK_ROW_SIZE][CHUNK_COL_SIZE];
for (int r = 0; r < CHUNK_ROW_SIZE; r++) {
for (int c = 0; c < CHUNK_COL_SIZE; c++) {
chunkData[r][c] = data[roffset + r][coffset + c];
chunkData[r][c] = data[roffset * CHUNK_ROW_SIZE + r][roffset * CHUNK_ROW_SIZE + c];
}
}
myChunkCache.put(key, new ListenableFuture<ArrayChunk>() {