]> git.lyx.org Git - lyx.git/blobdiff - src/LyXRC.cpp
remove indirection from LyXView::viewStatusMessage().
[lyx.git] / src / LyXRC.cpp
index 438714cfe39d2b113bc85ba1dc8d12c6b1d01ed3..b9dde4187b386e4c01a1769c4c8eb308f778972c 100644 (file)
@@ -243,7 +243,7 @@ void LyXRC::setDefaults()
        index_command = "makeindex -c -q";
        nomencl_command = "makeindex -s nomencl.ist";
        dpi = 75;
-       // Because a screen typically is wider than a piece of paper:
+       // Because a screen is typically wider than a piece of paper:
        zoom = 150;
        allow_geometry_session = true;
        // Default LaTeX font size:
@@ -306,7 +306,7 @@ void LyXRC::setDefaults()
        label_init_length = 3;
        preview = PREVIEW_OFF;
        preview_hashed_labels  = false;
-       preview_scale_factor = "0.9";
+       preview_scale_factor = 1.0;
        use_converter_cache = true;
        use_tooltip = true;
        use_pixmap_cache = false;
@@ -1036,7 +1036,10 @@ int LyXRC::read(Lexer & lexrc)
                }
                case RC_VIEWER_ALTERNATIVES:  {
                        string format, command;
-                       lexrc >> format >> command;
+                       if (lexrc.next())
+                               format = lexrc.getString();
+                       if (lexrc.eatLine())
+                               command = lexrc.getString();
                        viewer_alternatives.push_back(make_pair(format, command));
                        break;
                }