]> git.lyx.org Git - lyx.git/blobdiff - src/lyx_main.C
remove noload/don't typeset
[lyx.git] / src / lyx_main.C
index d29b23455096cdaf9a50cd2f0e48143b183f80a2..6a8b7de19f5d15b200f7d02e4b6bc7e0158c7d2e 100644 (file)
@@ -24,6 +24,8 @@
 #include "gettext.h"
 #include "lyxlex.h"
 
+#include "graphics/GraphicsTypes.h"
+
 #include "bufferlist.h"
 #include "buffer.h"
 #include "lyxserver.h"
@@ -85,6 +87,11 @@ LyX::LyX(int & argc, char * argv[])
        toplevel_keymap.reset(new kb_keymap);
        defaultKeyBindings(toplevel_keymap.get());
 
+       // set the DisplayTranslator only once; should that be done here??
+       // if this should not be in this file, please also remove
+       // #include "graphics/GraphicsTypes.h" at the top -- Rob Lahaye.
+       grfx::setDisplayTranslator();
+       
        if (want_gui) {
                lyx_gui::parse_init(argc, argv);
        }