ng_filter: Fix bug introduced in 98eff64

If the max width is modified for a region, use the modified version when
checking to see if a self-loop must be added on the last vertex.
This commit is contained in:
Justin Viiret 2016-01-28 17:16:53 +11:00 committed by Matthew Barr
parent 9eb328b455
commit 94b33421ca

View File

@ -285,7 +285,7 @@ void replaceRegion(NGHolder &g, const RegionInfo &ri,
verts.push_back(v);
}
if (ri.maxWidth.is_infinite()) {
if (maxWidth.is_infinite()) {
add_edge(verts.back(), verts.back(), g);
}