Possibly fix this bug:

To reproduce:
1) Press Cntl-N (start new file)
2) Press Alt-I, I, B (insert TOC from BibTeX)
3) Press Alt-A (Add...)
4) Double Click test
5) Press Alt-O (OK)
6) Press Alt-I C (Insert Citation)
7) Press Alt-A (Add) 

* familyName(): return earlier if author name is empty.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18987 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2007-07-05 09:06:31 +00:00
parent 34a2aeec9c
commit 8524ee93c3

View File

@ -176,6 +176,9 @@ string const asValidLatexCommand(string const & input,
docstring const familyName(docstring const & name)
{
if (name.empty())
return docstring();
// Very simple parser
docstring fname = name;