Skip to content

Commit ef8e36c

Browse files
committed
Draw text with empty lines correctly
Fixes processing#3736
1 parent 17004ab commit ef8e36c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/src/processing/core/PGraphics.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4708,7 +4708,7 @@ protected boolean textSentence(char[] buffer, int start, int stop,
47084708
// boundary of a word or end of this sentence
47094709
if ((buffer[index] == ' ') || (index == stop)) {
47104710
// System.out.println((index == stop) + " " + wordStart + " " + index);
4711-
if (wordStart == index) { // end of line, nothing is fitting
4711+
if (start != stop && wordStart == index) { // end of line, nothing is fitting
47124712
return false;
47134713
}
47144714
float wordWidth = textWidthImpl(buffer, wordStart, index);

0 commit comments

Comments
 (0)