Fix #623, get enitity from current graph

This commit is contained in:
Ansis Brammanis
2013-02-04 10:54:39 -05:00
parent e0d4f5e87d
commit 240d83c1fd
+1 -1
View File
@@ -21,7 +21,7 @@ iD.behavior.DrawWay = function(context, wayId, index, mode, baseGraph) {
} else if (datum.type === 'midpoint' || datum.type === 'way') {
var way = datum.type === 'way' ?
datum :
baseGraph.entity(datum.ways[0].id);
context.entity(datum.ways[0].id);
loc = iD.geo.chooseIndex(way, d3.mouse(context.surface().node()), context).loc;
}