mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-18 22:48:10 +02:00
Reset temp placement variable each loop iteration
(closes #4473) Otherwise `if (p)` will have stale data and be truthy for vertices at low zoom
This commit is contained in:
@@ -337,7 +337,7 @@ export function svgLabels(projection, context) {
|
||||
var getName = (geometry === 'line') ? utilDisplayNameForPath : utilDisplayName,
|
||||
name = getName(entity),
|
||||
width = name && textWidth(name, fontSize),
|
||||
p;
|
||||
p = null;
|
||||
|
||||
if (geometry === 'point') {
|
||||
p = getPointLabel(entity, width, fontSize, geometry);
|
||||
|
||||
Reference in New Issue
Block a user