From f829722b5199f559143e6231936f3fc533270193 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Wed, 8 Sep 2010 13:52:34 +0000 Subject: [PATCH] URGENT FIX git-svn-id: https://osmand.googlecode.com/svn/trunk@494 e29c36b1-1cfa-d876-8d93-3434fc2bb7b8 --- OsmAnd/src/net/osmand/render/OsmandRenderer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/render/OsmandRenderer.java b/OsmAnd/src/net/osmand/render/OsmandRenderer.java index dab392b0b6..128fed9b72 100644 --- a/OsmAnd/src/net/osmand/render/OsmandRenderer.java +++ b/OsmAnd/src/net/osmand/render/OsmandRenderer.java @@ -158,7 +158,7 @@ public class OsmandRenderer implements Comparator { if(icon.resId != 0){ Bitmap ico = BitmapFactory.decodeResource(context.getResources(), icon.resId); if (ico != null) { - cv.drawBitmap(ico, icon.x - bmp.getWidth() / 2, icon.y - bmp.getHeight() / 2, paintIcon); + cv.drawBitmap(ico, icon.x - ico.getWidth() / 2, icon.y - ico.getHeight() / 2, paintIcon); } } }