mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 18:08:10 +00:00
tex2lyx: fix a logic mistake
Preamble.cpp: set missing begin position for the search; thanks Vincent for spotting
This commit is contained in:
parent
d1800d4d5a
commit
8f7195a251
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user