]> git.lyx.org Git - lyx.git/commitdiff
Fix thinko
authorJuergen Spitzmueller <spitz@lyx.org>
Fri, 9 Nov 2018 10:28:38 +0000 (11:28 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Fri, 9 Nov 2018 10:28:38 +0000 (11:28 +0100)
Actually use the replaced path string :-/

src/insets/InsetInfo.cpp

index bb7f3af98e8ffd407cdf45099628a7749574f323..52d98e309882443ce8bd596aa298daa770519c41 100644 (file)
@@ -159,7 +159,7 @@ set<string> getTexFileList(string const & filename)
        for (auto doc : doclist) {
                subst(doc, from_ascii("\r"), docstring());
                while (contains(doc, from_ascii("//")))
-                       subst(doc, from_ascii("//"), from_ascii("/"));
+                       doc = subst(doc, from_ascii("//"), from_ascii("/"));
                if (!doc.empty())
                        list.insert(removeExtension(onlyFileName(to_utf8(doc))));
        }