]> git.lyx.org Git - features.git/commit
Python fixes from José Matos
authorScott Kostyshak <skostysh@lyx.org>
Sun, 20 Aug 2023 01:32:41 +0000 (21:32 -0400)
committerScott Kostyshak <skostysh@lyx.org>
Sun, 20 Aug 2023 02:08:08 +0000 (22:08 -0400)
commit677dc3b7a6792b3a07c2f7f33ed06aa173d55308
tree19bba4d30490298dc9d35006aa4a3ccbe687898f
parent784a7210baf6b0c610c04d507e08855bb233565e
Python fixes from José Matos

See here:

  https://www.mail-archive.com/search?l=mid&q=a7960223ee91696e916b281d1d9fc55df10a9480.camel%40gmail.com

Description from José pasted below:

  Functions `length_in_bp` and `revert_flex_inset` have an error in a
  (almost) never used path. The reason why this was never triggered is
  because this is part of the code where we try all the best efforts
  to recover from an ill-formed LyX file.

  The problem is that the functions call the `document` variable to
  issue an warning if the file does not follow the usual structure.
  The simple fix is to add that variable (as the first for the
  functions) and to add them at all the places where the functions are
  called.

  For reference this code was introduced by Georg (Baum) more than 8
  years ago and it was never reported. So the issue is not urgent in
  any meaningful way. :-)

  In `lyx2lyx/lyx_2_0.py`, in the function `revert_nameref`, there is
  a call to the document variable. The same as all the above.

  In `lyx2lyx/lyx_2_4.py`, in the `class fontmapping`. Similar to the
  above but now for error.
lib/lyx2lyx/lyx_1_2.py
lib/lyx2lyx/lyx_2_0.py
lib/lyx2lyx/lyx_2_3.py