Fix text layer

This commit is contained in:
Victor Shcherb 2020-01-10 12:22:26 +01:00
parent 74ef2955f7
commit 30c6ef0742

View file

@ -120,7 +120,7 @@ public class MapTextLayer extends OsmandMapLayer {
lastSpace = -1; lastSpace = -1;
limit += TEXT_WRAP; limit += TEXT_WRAP;
while (pos < limit && pos < end) { while (pos < limit && pos < end) {
if (!Character.isWhitespace(text.charAt(pos))) { if (Character.isWhitespace(text.charAt(pos))) {
lastSpace = pos; lastSpace = pos;
} }
pos++; pos++;