commit d4ff91388cbbe94312d019a7ce25f5da671c1a8e
Author: Juergen Spitzmueller <sp...@lyx.org>
Date:   Sat Feb 22 08:50:32 2025 +0100

    Amend 04a9748e7ecd
    
    Also in natbib-numeric, a (empty) year must be passed to the \bibitem
    option, as the natbib parser relies on it
    
    (cherry picked from commit d96cfb0662e3745cb043cfc5572288444b76e67c)
---
 src/frontends/qt/GuiBibitem.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/frontends/qt/GuiBibitem.cpp b/src/frontends/qt/GuiBibitem.cpp
index a832375cb6..244f304364 100644
--- a/src/frontends/qt/GuiBibitem.cpp
+++ b/src/frontends/qt/GuiBibitem.cpp
@@ -105,7 +105,7 @@ docstring GuiBibitem::dialogToParams() const
 {
        InsetCommandParams params(insetCode());
        QString label = labelED->text();
-       if (!yearED->isHidden())
+       if (!allAuthorsED->text().isEmpty())
                label += "(" + yearED->text() + ")" + allAuthorsED->text();
        params["key"] = qstring_to_ucs4(keyED->text());
        params["label"] = qstring_to_ucs4(label);
-- 
lyx-cvs mailing list
lyx-cvs@lists.lyx.org
https://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to