]> git.lyx.org Git - lyx.git/commitdiff
prevent crash in BufferParams::readGraphicsDriver()
authorGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Sat, 12 Feb 2005 16:21:32 +0000 (16:21 +0000)
committerGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Sat, 12 Feb 2005 16:21:32 +0000 (16:21 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9617 a592a061-630c-0410-9148-cb99ea01b6c8

src/ChangeLog
src/bufferparams.C

index 3fa669d7378e45857e2d1656601d2c15d6f6148a..c821baaf518614d3e44ddaf7b0e6d86bc370b29c 100644 (file)
@@ -1,3 +1,7 @@
+2005-02-12  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
+
+       * bufferparams.C (readGraphicsDriver): prevent crash
+
 2005-02-10  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
 
        * text2.C (setCounter): check for inInset() == 0
index d3c842ae8771341010a539954d9b75e5b32426cd..b09857e5f7c973bc9f4f6eb45a7ba8ede18557fc 100644 (file)
@@ -1224,7 +1224,7 @@ void BufferParams::readGraphicsDriver(LyXLex & lex)
                if (test == tmptok) {
                        graphicsDriver = tmptok;
                        break;
-               } else if (test == "last_item") {
+               } else if (test == "") {
                        lex.printError(
                                "Warning: graphics driver `$$Token' not recognized!\n"
                                "         Setting graphics driver to `default'.\n");