]> git.lyx.org Git - lyx.git/blobdiff - src/MenuBackend.C
redraw fix 1.
[lyx.git] / src / MenuBackend.C
index b852d14c3c304ae190128e0c4d217c46dc181077..e3c76877775b27f266dbec01c1f82b9ed7499639 100644 (file)
@@ -353,6 +353,15 @@ void Menu::expand(Menu & tomenu, Buffer * buf) const
                                if ((*fit)->dummy())
                                        continue;
                                string label = (*fit)->prettyname();
+                               // we need to hide the default graphic export
+                               // formats from the external menu, because we
+                               // need them only for the internal lyx-view and
+                               // external latex run
+                               if (label == "EPS" ||
+                                   label == "XPM" ||
+                                   label == "PNG")
+                                       continue;
+
                                if (cit->kind() == MenuItem::ImportFormats)
                                        if ((*fit)->name() == "text")
                                                label = _("Ascii text as lines");