X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FGraph.cpp;h=97427bcf1a662566b720ca1a89612099523eb072;hb=b6d182b81a882aadec6f27e17a60ebf7a3305b4a;hp=d7ea066dc36e6daa7bc76fa5a2de54d9b8cfe51c;hpb=0aee72871bb75643ab1e599519ef2f1454fd84e9;p=lyx.git diff --git a/src/Graph.cpp b/src/Graph.cpp index d7ea066dc3..97427bcf1a 100644 --- a/src/Graph.cpp +++ b/src/Graph.cpp @@ -83,7 +83,7 @@ Graph::EdgePath const Graph::EdgePath const Graph::getReachable(int from, bool only_viewable, - bool clear_visited) + bool clear_visited, set excludes) { EdgePath result; queue Q; @@ -111,7 +111,8 @@ Graph::EdgePath const int const cv = (*cit)->to; if (!vertices_[cv].visited) { vertices_[cv].visited = true; - Q.push(cv); + if (excludes.find(cv) == excludes.end()) + Q.push(cv); } } }