[Potlatch-dev] Parallelise.as - bug & fix

Rafał Rudzik rrudzik at gmail.com
Sat Nov 20 15:18:37 GMT 2010


Line 76 is incorrect because draw function is executed every time when
we move mouse:

if (originalWay.isArea()) { parallelWay.appendNode(nodes[0],undo.push); }

Example paralleise area way nodes now: [-6, -7, -8, -6, -6, -6, -6,
-6, -6, -6, -6, -6]
Correctly, is as follows: [-6, -7, -8, -6]

Fix:
if  ( originalWay.isArea() && parallelWay.getLastNode() !=
parallelWay.getNode(0) ) { parallelWay.appendNode(nodes[0],undo.push);
}

RafalR



More information about the Potlatch-dev mailing list