Preamble.cpp: set missing begin position for the search; thanks Vincent for spotting
// check if the option contains a scaling, if yes, extract it
string::size_type pos = fontopts.find("Scale");
if (pos != string::npos) {
// 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
if (i == string::npos)
scale = scale_as_percentage(fontopts.substr(pos + 1));
else