mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 12:32:26 +00:00
preamble.cpp: fix whitespace
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22040 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
0667412a89
commit
a11ae22aa3
@ -203,15 +203,15 @@ void add_package(string const & name, vector<string> & options)
|
||||
// Given is a string like "scaled=0.9", return 0.9 * 100
|
||||
string const scale_as_percentage(string const & scale)
|
||||
{
|
||||
string::size_type pos = scale.find('=');
|
||||
if (pos != string::npos) {
|
||||
string value = scale.substr(pos + 1);
|
||||
if (isStrDbl(value))
|
||||
return convert<string>(100 * convert<double>(value));
|
||||
}
|
||||
// If the input string didn't match our expectations.
|
||||
// return the default value "100"
|
||||
return "100";
|
||||
string::size_type pos = scale.find('=');
|
||||
if (pos != string::npos) {
|
||||
string value = scale.substr(pos + 1);
|
||||
if (isStrDbl(value))
|
||||
return convert<string>(100 * convert<double>(value));
|
||||
}
|
||||
// If the input string didn't match our expectations.
|
||||
// return the default value "100"
|
||||
return "100";
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user