]> git.lyx.org Git - features.git/commit
If lyx2lyx is asked to convert a file to the format it already is,
authorRichard Heck <rgheck@lyx.org>
Sun, 1 Nov 2015 21:27:58 +0000 (16:27 -0500)
committerRichard Heck <rgheck@lyx.org>
Sun, 1 Nov 2015 21:27:58 +0000 (16:27 -0500)
commit221932f63a230e0cc01d5581c3521128d8d12e2f
tree4f67cacaf12f461f74bdbb4e56375ab7c7564267
parenta9b8cdca9e56f15128ba80b12cd16efb7ff85a81
If lyx2lyx is asked to convert a file to the format it already is,
then just perform a null conversion. This seems better than aborting
with an error. I can imagine a script that converted all files in a
certain directory to format 498, and you don't want it to be an error
if one of them is already 498.

Prior to this, what lyx2lyx would do is convert to the lowest format
in the current version. So, e.g., asked to convert 498 to 498 it would
convert to 474. That is obviously wrong.
lib/lyx2lyx/LyX.py