]> git.lyx.org Git - lyx.git/blobdiff - src/tex2lyx/Preamble.cpp
Cmake build: Omit also hidden header files from globbing
[lyx.git] / src / tex2lyx / Preamble.cpp
index d9c823f81dbc1e3153dbf4ed42cd9409270a20c3..934420a9c1cd364ae4793a5a4a82674e26795d16 100644 (file)
@@ -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;
                }
        }