mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix PY-14453
This commit is contained in:
@@ -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>() {
|
||||
|
||||
Reference in New Issue
Block a user