From: Justin Viiret Date: Thu, 28 Jan 2016 06:16:53 +0000 (+1100) Subject: ng_filter: Fix bug introduced in 98eff64 X-Git-Tag: v4.2.0^2~159 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=94b33421cafcbc952d3bcb6659f7a5b18313e780;p=thirdparty%2Fvectorscan.git 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. --- diff --git a/src/nfagraph/ng_prefilter.cpp b/src/nfagraph/ng_prefilter.cpp index c0caf1b9..c2b9eea9 100644 --- a/src/nfagraph/ng_prefilter.cpp +++ b/src/nfagraph/ng_prefilter.cpp @@ -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); }