Fix java renderer

This commit is contained in:
Victor Shcherb 2014-12-19 19:37:23 +01:00
parent 484c951790
commit ffe028fe51

View file

@ -382,10 +382,16 @@ public class OsmandRenderer {
} }
protected void drawBitmap(Canvas cv, Bitmap ico, RectF rf) { protected void drawBitmap(Canvas cv, Bitmap ico, RectF rf) {
if(ico == null) {
return;
}
cv.drawBitmap(ico, rf.left, rf.top, paintIcon); cv.drawBitmap(ico, rf.left, rf.top, paintIcon);
} }
protected void drawBitmap(Canvas cv, Bitmap ico, RectF rf, Rect src) { protected void drawBitmap(Canvas cv, Bitmap ico, RectF rf, Rect src) {
if(ico == null) {
return;
}
cv.drawBitmap(ico, src, rf, paintIcon); cv.drawBitmap(ico, src, rf, paintIcon);
} }