Merge pull request #8190 from osmandapp/java_rendering_fix

fix from #8173
This commit is contained in:
vshcherb 2020-01-08 11:47:21 +01:00 committed by GitHub
commit d9c26715fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -481,7 +481,10 @@ public class OsmandRenderer {
mapObj.typeInd = j;
mapObj.obj = o;
if(objectType == 3) {
MapDataObjectPrimitive pointObj = mapObj;
MapDataObjectPrimitive pointObj = new MapDataObjectPrimitive();
pointObj.order = order;
pointObj.typeInd = j;
pointObj.obj = o;
pointObj.objectType = 1;
double area = polygonArea(mapObj, mult);
mapObj.area = area;