From 30c6ef07421e132b004559f3c9cb48ea80adb654 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Fri, 10 Jan 2020 12:22:26 +0100 Subject: [PATCH] Fix text layer --- OsmAnd/src/net/osmand/plus/views/MapTextLayer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/views/MapTextLayer.java b/OsmAnd/src/net/osmand/plus/views/MapTextLayer.java index 9c78e79a00..9f0c1ea45a 100644 --- a/OsmAnd/src/net/osmand/plus/views/MapTextLayer.java +++ b/OsmAnd/src/net/osmand/plus/views/MapTextLayer.java @@ -120,7 +120,7 @@ public class MapTextLayer extends OsmandMapLayer { lastSpace = -1; limit += TEXT_WRAP; while (pos < limit && pos < end) { - if (!Character.isWhitespace(text.charAt(pos))) { + if (Character.isWhitespace(text.charAt(pos))) { lastSpace = pos; } pos++;