]> git.lyx.org Git - features.git/commitdiff
Preserve star on citation style change via menu
authorJuergen Spitzmueller <spitz@lyx.org>
Tue, 9 Jul 2019 08:47:18 +0000 (10:47 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Wed, 10 Jul 2019 07:37:24 +0000 (09:37 +0200)
Fixes: #11439
(cherry picked from commit 52fffee7f2a96025a872b5c3a8c4dc26eae04822)

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

index 3773fd9d7af01a2081d96578da47b6838e6d521c..5eafff6f74b333ce0527e0e84edc843b0bed1759 100644 (file)
@@ -1572,9 +1572,8 @@ void MenuDefinition::expandCiteStyles(BufferView const * bv)
                return;
        }
 
-       size_t const n = cmd.size();
        bool const force = isUpperCase(cmd[0]);
-       bool const star = cmd[n] == '*';
+       bool const star = suffixIs(cmd, '*');
 
        vector<docstring> const keys = getVectorFromString(key);
 
index 140e9b2c86204eae3f3e9977015af9cb6458558b..e3c552244359e0322e59f7868613de80f2d47017 100644 (file)
@@ -87,6 +87,9 @@ What's new
 - Fix additional problem with display of inline equations in outliner
   (bug 11423).
 
+- Preserve "all authors" state when switching citation style via context
+  menu (bug 11439).
+
 
 * INTERNALS