Merge branch 'master' of github.com:processing/processing

This commit is contained in:
Ben Fry
2015-08-28 18:15:11 -04:00

View File

@@ -4708,7 +4708,7 @@ public class PGraphics extends PImage implements PConstants {
// boundary of a word or end of this sentence
if ((buffer[index] == ' ') || (index == stop)) {
// System.out.println((index == stop) + " " + wordStart + " " + index);
if (wordStart == index) { // end of line, nothing is fitting
if (start != stop && wordStart == index) { // end of line, nothing is fitting
return false;
}
float wordWidth = textWidthImpl(buffer, wordStart, index);