Skip to content

Commit 13ba491

Browse files
committed
fix for indices not set properly with StringDict(Reader)
1 parent f41b165 commit 13ba491

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

core/src/processing/data/StringDict.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ public StringDict(BufferedReader reader) {
6363
if (pieces.length == 2) {
6464
keys[count] = pieces[0];
6565
values[count] = pieces[1];
66+
indices.put(keys[count], count);
6667
count++;
6768
}
6869
}

core/todo.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
0225 core
2+
X bug with StringDict(Reader) that wasn't setting the indices hashmap
3+
_ check this with other versions of this class
24

35

46
_ add print() method to other data types (not just IntList)

todo.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ _ udp library has tabs in the text
1515
_ decision to be made on nextTabStop() inside TextAreaPainter
1616
_ Chinese text is overlapped in Processing 2.1 editor
1717
_ https://github.com/processing/processing/issues/2173
18+
_ https://github.com/processing/processing/pull/2318
19+
_ https://github.com/processing/processing/pull/2323
1820
_ check on why 2x core.jar inside the Java folder
1921
_ maybe OS X Java can't look in subfolders? (just auto-adds things)
2022

0 commit comments

Comments
 (0)