Merge pull request #2537 from HattinkT/fix_missing_first_line_in_segment

Fix bug causing first segment of drawn path to be not drawn
This commit is contained in:
vshcherb 2016-05-15 16:49:38 +03:00
commit 7fd2802efe

View file

@ -165,6 +165,11 @@ public abstract class OsmandMapLayer {
long intersection = MapAlgorithms.calculateIntersection(x, y,
px, py, 0, w, h, 0);
if (intersection != -1) {
if (pin && (i == 1)) {
cnt++;
path.moveTo(px, py);
start = true;
}
px = (int) (intersection >> 32);
py = (int) (intersection & 0xffffffff);
draw = true;