prevent crash in BufferParams::readGraphicsDriver()

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9617 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Georg Baum 2005-02-12 16:21:32 +00:00
parent 70f4ff1a59
commit 9b7c320e46
2 changed files with 5 additions and 1 deletions

View 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

View 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");