fix issue 211

git-svn-id: https://osmand.googlecode.com/svn/trunk@696 e29c36b1-1cfa-d876-8d93-3434fc2bb7b8
This commit is contained in:
Victor Shcherb 2010-11-23 21:48:57 +00:00
parent 0f8eddef48
commit d9b8b04290

View file

@ -829,7 +829,7 @@ public class OsmandRenderer {
canvas.drawPath(path, paint); canvas.drawPath(path, paint);
} }
} }
if (obj.getName() != null) { if (obj.getName() != null && obj.getName().length() > 0) {
String name = obj.getName(); String name = obj.getName();
String ref = null; String ref = null;
if(name.charAt(0) == MapRenderingTypes.REF_CHAR){ if(name.charAt(0) == MapRenderingTypes.REF_CHAR){
@ -845,7 +845,7 @@ public class OsmandRenderer {
} }
} }
} }
if(ref != null){ if(ref != null && ref.trim().length() > 0){
rc.clearText(); rc.clearText();
ref = render.renderObjectText(ref, pair.tag, pair.value, rc, true); ref = render.renderObjectText(ref, pair.tag, pair.value, rc, true);
TextDrawInfo text = new TextDrawInfo(ref); TextDrawInfo text = new TextDrawInfo(ref);
@ -858,7 +858,7 @@ public class OsmandRenderer {
} }
if(name != null && name.length() > 0){ if(name != null && name.trim().length() > 0){
rc.clearText(); rc.clearText();
name = render.renderObjectText(name, pair.tag, pair.value, rc, false); name = render.renderObjectText(name, pair.tag, pair.value, rc, false);
if (rc.textSize > 0) { if (rc.textSize > 0) {