From 5565999583860ffed3be13563fd3bbac1aa69640 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Tue, 7 Jan 2020 18:44:43 +0100 Subject: [PATCH] Fix #7522 --- 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 ebc424c41e..9c78e79a00 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.isLetterOrDigit(text.charAt(pos))) { + if (!Character.isWhitespace(text.charAt(pos))) { lastSpace = pos; } pos++;