Return the right params[embed] from GuiBibtex.cpp, for safety reasons

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24054 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Bo Peng 2008-03-29 23:28:49 +00:00
parent 30663a8019
commit 534b81a5c1

View File

@ -372,8 +372,12 @@ void GuiBibtex::applyView()
QString item = databaseLW->item(i)->text();
docstring bibfile = qstring_to_ucs4(item);
dbs += bibfile;
if (databaseLW->item(i)->checkState() == Qt::Checked)
emb += "embedded";
if (databaseLW->item(i)->checkState() == Qt::Checked) {
FileName bibfilepath = InsetBibtex::getBibTeXPath(bibfile, buf);
string inzipName = EmbeddedFile(bibfilepath.absFilename(),
buf.filePath()).inzipName();
emb += from_utf8(inzipName);
}
}
params_["bibfiles"] = dbs;