]> git.lyx.org Git - lyx.git/blobdiff - src/MenuBackend.C
code cosmetics to the iterator fix
[lyx.git] / src / MenuBackend.C
index 89101d55e66943ca0ef604845eae7eea5bf32f96..8ecdb4bad1394f0d52031fe6617d8016f4430e85 100644 (file)
@@ -517,6 +517,11 @@ void expandFormats(MenuItem::Kind kind, Menu & tomenu, LyXView const * view)
                        else if ((*fit)->name() == "textparagraph")
                                label = _("Plain Text as Paragraphs");
                        label += "...";
+               } else if (kind == MenuItem::ExportFormats) {
+                       // exporting to LyX does not make sense
+                       // FIXME: Introduce noexport flag
+                       if ((*fit)->name() == "lyx")
+                               continue;
                }
                if (!(*fit)->shortcut().empty())
                        label += '|' + (*fit)->shortcut();