]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/screen.C
Lars says _(_(b)) is a bug ... fix
[lyx.git] / src / frontends / screen.C
index 31220bf0f7dfce598c752c2358895c3c9c729c30..74fa21184b591e47430dd3ed14eee7c75b99ec4d 100644 (file)
@@ -1,9 +1,11 @@
 /**
  * \file screen.C
- * Copyright 2002 the LyX Team
- * Read the file COPYING
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- * \author John Levon <moz@compsoc.man.ac.uk>
+ * \author John Levon
+ *
+ * Full author contact details are available in file CREDITS
  *
  * Splash screen code added by Angus Leeming
  */
@@ -16,6 +18,7 @@
 
 #include "screen.h"
 #include "lyxtext.h"
+#include "lyxrc.h"
 #include "lyxrow.h"
 #include "BufferView.h"
 #include "buffer.h"
@@ -80,6 +83,9 @@ SplashScreen const & SplashScreen::get()
 SplashScreen::SplashScreen()
        : text_(lyx_version ? lyx_version : "unknown")
 {
+       if (!lyxrc.show_banner)
+               return;
+
        string const file = LibFileSearch("images", "banner", "xpm");
        if (file.empty())
                return;
@@ -400,7 +406,7 @@ void LyXScreen::drawFromTo(LyXText * text, BufferView * bv,
        int y1, int y2, int yo, int xo,
        bool internal)
 {
-       lyxerr[Debug::GUI] << "screen: drawFromTo " << y1 << "-" << y2 << endl;
+       lyxerr[Debug::GUI] << "screen: drawFromTo " << y1 << '-' << y2 << endl;
 
        int y_text = text->first_y + y1;