]> git.lyx.org Git - features.git/commitdiff
tex2lyx: fix a logic mistake
authorUwe Stöhr <uwestoehr@lyx.org>
Wed, 27 Jun 2012 21:18:02 +0000 (23:18 +0200)
committerUwe Stöhr <uwestoehr@lyx.org>
Wed, 27 Jun 2012 21:18:02 +0000 (23:18 +0200)
Preamble.cpp: set missing begin position for the search; thanks Vincent for spotting

src/tex2lyx/Preamble.cpp

index dc258ea829400a722f675f911f3f95721c35fdf2..70fc2e62d90c7476e8898c0f7780f4d8a15f6c87 100644 (file)
@@ -1195,7 +1195,7 @@ void Preamble::parse(Parser & p, string const & forceclass,
                                // check if the option contains a scaling, if yes, extract it
                                string::size_type pos = fontopts.find("Scale");
                                if (pos != string::npos) {
-                                       string::size_type i = fontopts.find(',');
+                                       string::size_type i = fontopts.find(',', pos);
                                        if (i == string::npos)
                                                scale = scale_as_percentage(fontopts.substr(pos + 1));
                                        else