mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
Fix import of latex documents with scaled fonts.
This commit is contained in:
parent
60a1b3b83c
commit
b60b505fd8
@ -217,6 +217,7 @@ void init(int argc, char * argv[])
|
||||
|
||||
// Set environment's default locale
|
||||
setlocale(LC_ALL, "");
|
||||
setlocale(LC_NUMERIC, "C");
|
||||
|
||||
// Make sure that the TEMP variable is set
|
||||
// and sync the Windows environment.
|
||||
|
@ -49,6 +49,7 @@ void init(int argc, char * argv[])
|
||||
|
||||
// Set environment's default locale
|
||||
setlocale(LC_ALL, "");
|
||||
setlocale(LC_NUMERIC, "C");
|
||||
}
|
||||
|
||||
|
||||
|
@ -424,7 +424,8 @@ bool scale_as_percentage(string const & scale, string & percentage)
|
||||
if (pos != string::npos) {
|
||||
string value = scale.substr(pos + 1);
|
||||
if (isStrDbl(value)) {
|
||||
percentage = convert<string>(100 * convert<double>(value));
|
||||
percentage = convert<string>(
|
||||
static_cast<int>(100 * convert<double>(value)));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user