]> git.lyx.org Git - features.git/commit
Fix scale parameter for fonts.
authorEnrico Forestieri <forenr@lyx.org>
Fri, 11 Jul 2014 14:12:08 +0000 (16:12 +0200)
committerEnrico Forestieri <forenr@lyx.org>
Fri, 11 Jul 2014 14:12:08 +0000 (16:12 +0200)
commit6a5aa1cab18fb5c7e71c798771e6230d539a509a
tree93be3f54bd2380f7da10f8246862b62d31821598
parentb60b505fd82866dc57d4522b3ff73ae5bd337612
Fix scale parameter for fonts.

When a font is scaled by a certain percentage in the document settings,
LyX was outputting a ridiculous parameter value. For example, if the
font is scaled 90%, the corresponding parameter was "scaled=0.899999976".
The patch avoids this and, in the previous case, one gets "scaled=0.9".
This is not only cosmetic, because in roundtrip conversions the parameter
would be continuosly changing.

This commit and b60b505f should be backported to the 2.1.x branch, where
reimporting with tex2lyx an exported document produces wrong results
(also in version 2.1.0).
src/LaTeXFonts.cpp