]> 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)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 18 Jun 2020 13:48:35 +0000 (15:48 +0200)
Fixes: #11439
src/frontends/qt4/Menus.cpp

index e06ce0fab265cf4c9fdb1979e7b68f1da0763b29..3d2223c0c315309b15559e766fd79ba96f2cdaf2 100644 (file)
@@ -1594,9 +1594,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);