Skip to content

Commit 21c2466

Browse files
authored
Use start instead of 0 for the starting index in text(char[], int, int, float, float) (#1257)
1 parent e42055f commit 21c2466

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/processing/core/PGraphics.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4768,7 +4768,7 @@ public void text(char[] chars, int start, int stop, float x, float y) {
47684768
}
47694769

47704770
// int start = 0;
4771-
int index = 0;
4771+
int index = start;
47724772
while (index < stop) { //length) {
47734773
if (chars[index] == '\n') {
47744774
textLineAlignImpl(chars, start, index, x, y);

0 commit comments

Comments
 (0)