]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/screen.C
* disable loading of xpm files by the xforms image loader.
[lyx.git] / src / frontends / screen.C
index 74fa21184b591e47430dd3ed14eee7c75b99ec4d..cac90a4c7a1f7f16f6a54db868fac332f855fb62 100644 (file)
@@ -86,7 +86,7 @@ SplashScreen::SplashScreen()
        if (!lyxrc.show_banner)
                return;
 
-       string const file = LibFileSearch("images", "banner", "xpm");
+       string const file = LibFileSearch("images", "banner", "ppm");
        if (file.empty())
                return;
 
@@ -171,6 +171,7 @@ bool LyXScreen::fitManualCursor(BufferView * bv, LyXText * text,
                text->first_y = newtop;
                return true;
        }
+
        return false;
 }
 
@@ -230,8 +231,10 @@ bool LyXScreen::fitCursor(LyXText * text, BufferView * bv)
        // Is a change necessary?
        int const newtop = topCursorVisible(text->cursor, text->first_y);
        bool const result = (newtop != text->first_y);
-       if (result)
+       if (result) {
                draw(text, bv, newtop);
+       }
+
        return result;
 }