From 8524ee93c35ed3ca15a0aaafa7b893f2f7d21f47 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Thu, 5 Jul 2007 09:06:31 +0000 Subject: [PATCH] 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 --- src/frontends/controllers/frontend_helpers.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/frontends/controllers/frontend_helpers.cpp b/src/frontends/controllers/frontend_helpers.cpp index 640bac3aa8..bf0df1d933 100644 --- a/src/frontends/controllers/frontend_helpers.cpp +++ b/src/frontends/controllers/frontend_helpers.cpp @@ -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; -- 2.39.5