From: Scott Kostyshak Date: Fri, 11 Jan 2013 09:51:46 +0000 (-0500) Subject: Fix editor and viewer combo boxes in prefs (#8237) X-Git-Tag: 2.1.0beta1~941 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=47e98487838b6c99b2631f0b203abf89e2d739bd;p=features.git Fix editor and viewer combo boxes in prefs (#8237) --- diff --git a/src/LyXRC.cpp b/src/LyXRC.cpp index 52197c2ab6..6dba894ef7 100644 --- a/src/LyXRC.cpp +++ b/src/LyXRC.cpp @@ -1143,19 +1143,15 @@ LyXRC::ReturnValues LyXRC::read(Lexer & lexrc, bool check_format) } case RC_VIEWER_ALTERNATIVES: { string format, command; - if (lexrc.next()) - format = lexrc.getString(); - if (lexrc.eatLine()) - command = lexrc.getString(); + lexrc >> format; + lexrc >> command; viewer_alternatives[format].insert(command); break; } case RC_EDITOR_ALTERNATIVES: { string format, command; - if (lexrc.next()) - format = lexrc.getString(); - if (lexrc.eatLine()) - command = lexrc.getString(); + lexrc >> format; + lexrc >> command; editor_alternatives[format].insert(command); break; }