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:
commit
7fd2802efe
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue