more fixes (correct filename, and repair view file)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23555 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Edwin Leuven 2008-03-08 09:54:48 +00:00
parent 8675175492
commit d1aff33dd5
2 changed files with 2 additions and 1 deletions

View File

@ -149,7 +149,7 @@ void GuiTexInfo::enableViewPB()
void GuiTexInfo::updateStyles(TexFileType type)
{
static QString const filenames[] = {
"clsFile.lst", "styFiles.lst", "bstFiles.lst"
"clsFiles.lst", "styFiles.lst", "bstFiles.lst"
};
QString const filename = filenames[type];

View File

@ -246,6 +246,7 @@ QStringList texFileList(QString const & filename)
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())