mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-12 16:50:39 +00:00
* lib/scripts/lyxpreview2bitmap.py: fix frac calculation (bug 2391).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13510 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
8b38f6f875
commit
12ab1b1cec
@ -1,3 +1,7 @@
|
||||
2006-03-28 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
|
||||
|
||||
* scripts/lyxpreview2bitmap.py: fix frac calculation (bug 2391).
|
||||
|
||||
2006-03-20 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
|
||||
|
||||
* bind/sciword.bind: fix find&replace entry.
|
||||
|
@ -103,12 +103,12 @@ def extract_metrics_info(dvipng_stdout, metrics_file):
|
||||
ascent = string.atof(match.group(2))
|
||||
|
||||
frac = 0.5
|
||||
if ascent >= 0 and descent >= 0:
|
||||
if ascent >= 0 or descent >= 0:
|
||||
if abs(ascent + descent) > 0.1:
|
||||
frac = ascent / (ascent + descent)
|
||||
|
||||
# Sanity check
|
||||
if frac < 0 or frac > 1:
|
||||
# Sanity check
|
||||
if frac < 0:
|
||||
frac = 0.5
|
||||
|
||||
metrics.write("Snippet %s %f\n" % (page, frac))
|
||||
|
@ -104,6 +104,8 @@ What's new
|
||||
|
||||
- Fix Find&Replace with sciword bindings.
|
||||
|
||||
- Fix alignment of superscript previews (bug 2391).
|
||||
|
||||
* Configuration/Installation:
|
||||
|
||||
- Don't use the -mms-bitfields compiler switch on mingw and cygwin, since
|
||||
|
Loading…
Reference in New Issue
Block a user