]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/Menus.cpp
HTML output for InsetMathCancel.
[lyx.git] / src / frontends / qt4 / Menus.cpp
index 721eff4df89428388f1b0268c8432032735633da..badf8d171ede17f4c0c21db1869afea527fb01dd 100644 (file)
@@ -949,9 +949,8 @@ void MenuDefinition::expandDocuments()
        Buffer * b = first;
        // We cannot use a for loop as the buffer list cycles.
        do {
-               bool const shown = guiApp->currentView()
-                       ? guiApp->currentView()->workArea(*b) : false;
-               if (!shown) {
+               if (guiApp->currentView()
+                   && guiApp->currentView()->workArea(*b)) {
                        QString label = toqstr(b->fileName().displayName(20));
                        if (!b->isClean())
                                label += "*";
@@ -1491,7 +1490,8 @@ void MenuDefinition::expandCiteStyles(BufferView const * bv)
        if (contains(key, ','))
                key = qstring_to_ucs4(toqstr(key).split(',')[0]);
 
-       vector<CiteStyle> citeStyleList = citeStyles(buf->params().citeEngine());
+       vector<CiteStyle> citeStyleList = citeStyles(buf->params().citeEngine(),
+               buf->params().citeEngineType());
        docstring_list citeStrings =
                buf->masterBibInfo().getCiteStrings(key, bv->buffer());