]> git.lyx.org Git - features.git/commitdiff
Do not store empty posttext for qualified citations
authorJuergen Spitzmueller <spitz@lyx.org>
Tue, 25 Sep 2018 11:13:56 +0000 (13:13 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Tue, 2 Oct 2018 06:11:50 +0000 (08:11 +0200)
Fixes: #11308
(cherry picked from commit 90b13452037dba56b16f8fb55cce36aebc226804)

src/frontends/qt4/GuiCitation.cpp
status.23x

index 06dd4ed827d2195297beebeb39fa6e1ab1a99afe..4e96b74555fcfe0541cd714c24d20b4a7110c1fe 100644 (file)
@@ -738,7 +738,7 @@ vector<docstring> GuiCitation::getPostTexts()
        for (int i = 0; i != selected_model_.rowCount(); ++i) {
                QStandardItem const * key = selected_model_.item(i, 1);
                QStandardItem const * post = selected_model_.item(i, 2);
-               if (key && post)
+               if (key && post && !key->text().isEmpty() && !post->text().isEmpty())
                        res.push_back(qstring_to_ucs4(key->text()) + " " + qstring_to_ucs4(post->text()));
        }
        return res;
index 39cbc4cf4d224dec141f15b58ed78af903c03266..979bdb83002fa074641e908ce2844610e505c474 100644 (file)
@@ -124,6 +124,8 @@ What's new
 
 - Fix crash on Windows when closing external viewers (bug 11210).
 
+- Fix issue with erroneous qualified citations (bug 11308).
+
 
 
 * USER INTERFACE