]> git.lyx.org Git - features.git/commitdiff
Fix bug 4779 (printing not possible)
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 23 Apr 2008 10:25:34 +0000 (10:25 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 23 Apr 2008 10:25:34 +0000 (10:25 +0000)
http://bugzilla.lyx.org/show_bug.cgi?id=4779

This was a collateral damage of the 'lyxlex simplification'.`

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24474 a592a061-630c-0410-9148-cb99ea01b6c8

src/LyXRC.cpp

index 09a4d5bf108b4640f37ee3cc2c64338138ca84ce..835d099aab9c4c6f94690f794d572307329278a9 100644 (file)
@@ -512,7 +512,9 @@ int LyXRC::read(Lexer & lexrc)
                        break;
 
                case RC_PRINTTOFILE:
-                       print_to_file = os::internal_path(lexrc.getString());
+                       if (lexrc.next()) {
+                               print_to_file = os::internal_path(lexrc.getString());
+                       }
                        break;
 
                case RC_PRINTFILEEXTENSION: