mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Fix bug #10893.
This commit is contained in:
parent
59498fa0cd
commit
9dcaf40452
@ -327,12 +327,12 @@ QStringList texFileList(QString const & filename)
|
||||
// Normalise paths like /foo//bar ==> /foo/bar
|
||||
QSet<QString> set;
|
||||
for (size_t i = 0; i != doclist.size(); ++i) {
|
||||
QString file = toqstr(doclist[i]);
|
||||
file.replace("\r", "");
|
||||
while (file.contains("//"))
|
||||
file.replace("//", "/");
|
||||
if (!file.isEmpty())
|
||||
set.insert(file);
|
||||
QString qfile = toqstr(doclist[i]);
|
||||
qfile.replace("\r", "");
|
||||
while (qfile.contains("//"))
|
||||
qfile.replace("//", "/");
|
||||
if (!qfile.isEmpty())
|
||||
set.insert(qfile);
|
||||
}
|
||||
|
||||
// remove duplicates
|
||||
|
Loading…
Reference in New Issue
Block a user