]> git.lyx.org Git - lyx.git/commitdiff
* Menus.cpp:
authorJürgen Spitzmüller <spitz@lyx.org>
Mon, 28 Apr 2008 16:25:54 +0000 (16:25 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Mon, 28 Apr 2008 16:25:54 +0000 (16:25 +0000)
- make it work with multiple keys.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24539 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/Menus.cpp

index e9b3795f0298d3260a857502a5dd83e2ff8e27ab..698fd05f8404e760740bdcd1abaac5cb4276d7d7 100644 (file)
@@ -1091,6 +1091,9 @@ void MenuDefinition::expandCiteStyles(BufferView const * bv)
        
        Buffer const * buf = &bv->buffer();
        docstring key = citinset->getParam("key");
+       // we can only handle one key currently
+       if (contains(key, ','))
+               key = qstring_to_ucs4(toqstr(key).split(',')[0]);
 
        vector<CiteStyle> citeStyleList = citeStyles(buf->params().citeEngine());
        vector<docstring> citeStrings =