]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetInfo.cpp
Fix assertion when checking if change in selection
[lyx.git] / src / insets / InsetInfo.cpp
index bb7f3af98e8ffd407cdf45099628a7749574f323..d6c68ed6b2eaf3b93af4ea8d3260a3fc6a0fb952 100644 (file)
@@ -157,9 +157,9 @@ set<string> getTexFileList(string const & filename)
 
        // Normalise paths like /foo//bar ==> /foo/bar
        for (auto doc : doclist) {
-               subst(doc, from_ascii("\r"), docstring());
+               doc = 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))));
        }