From 534b81a5c16915b486eae41133df0fdcbc6e5f18 Mon Sep 17 00:00:00 2001 From: Bo Peng Date: Sat, 29 Mar 2008 23:28:49 +0000 Subject: [PATCH] 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 --- src/frontends/qt4/GuiBibtex.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/frontends/qt4/GuiBibtex.cpp b/src/frontends/qt4/GuiBibtex.cpp index f6838f3908..274effa2d1 100644 --- a/src/frontends/qt4/GuiBibtex.cpp +++ b/src/frontends/qt4/GuiBibtex.cpp @@ -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; -- 2.39.5