From 8f7195a251341a2267fdca8db43b4c30e4b015fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Uwe=20St=C3=B6hr?= Date: Wed, 27 Jun 2012 23:18:02 +0200 Subject: [PATCH] tex2lyx: fix a logic mistake Preamble.cpp: set missing begin position for the search; thanks Vincent for spotting --- src/tex2lyx/Preamble.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tex2lyx/Preamble.cpp b/src/tex2lyx/Preamble.cpp index dc258ea829..70fc2e62d9 100644 --- a/src/tex2lyx/Preamble.cpp +++ b/src/tex2lyx/Preamble.cpp @@ -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