X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FGraph.cpp;h=036bb38857359e6d8a6f78b8c568b97ca6d8c89e;hb=d1b9af3b1dede776f92910378f538f881a68d28e;hp=97427bcf1a662566b720ca1a89612099523eb072;hpb=4685a3e5a8ad3a4e519b8e3645922c9df2095f62;p=lyx.git diff --git a/src/Graph.cpp b/src/Graph.cpp index 97427bcf1a..036bb38857 100644 --- a/src/Graph.cpp +++ b/src/Graph.cpp @@ -28,7 +28,7 @@ bool Graph::bfs_init(int s, bool clear_visited, queue & Q) { if (s < 0) return false; - + if (!Q.empty()) Q = queue(); @@ -63,7 +63,7 @@ Graph::EdgePath const while (!Q.empty()) { int const current = Q.front(); Q.pop(); - if (current != target || formats.get(target).name() != "lyx") + if (current != target || theFormats().get(target).name() != "lyx") result.push_back(current); vector::iterator it = vertices_[current].in_arrows.begin(); @@ -93,12 +93,12 @@ Graph::EdgePath const while (!Q.empty()) { int const current = Q.front(); Q.pop(); - Format const & format = formats.get(current); + Format const & format = theFormats().get(current); if (!only_viewable || !format.viewer().empty()) result.push_back(current); else if (format.isChildFormat()) { Format const * const parent = - formats.getFormat(format.parentFormat()); + theFormats().getFormat(format.parentFormat()); if (parent && !parent->viewer().empty()) result.push_back(current); }