tex2lyx: fix a logic mistake

Preamble.cpp: set missing begin position for the search; thanks Vincent for spotting
This commit is contained in:
Uwe Stöhr 2012-06-27 23:18:02 +02:00
parent d1800d4d5a
commit 8f7195a251

View 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