lyx2lyx error
José Matos
jaomatos at gmail.com
Wed Sep 6 16:58:18 UTC 2023
On Wed, 2023-09-06 at 07:36 +0100, José Matos wrote:
> So it seems that what should not happen happened. :-)
>
> This means that something unexpected is happening and the code is not
> able to react to it.
My analysis was not entirely correct. :-)
In any case the issue is that function returns either False or a
triplet with expected values.
The funny thing, at least to me, is that the corresponding construct in
C++ is std::optional (C++17 and later)
https://en.cppreference.com/w/cpp/utility/optional
again C++ is converging to python. :-D
With the original file (from the bug reporter) it was possible to
construct a minimal file, that follows attached.
The fix was then simple and also follows attached. Please commit it.
Best regards,
--
José Abílio
-------------- next part --------------
A non-text attachment was scrubbed...
Name: minimal.lyx
Type: application/x-lyx
Size: 2974 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20230906/6769e45e/attachment-0001.lyx>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix_reverter_bug.patch
Type: text/x-patch
Size: 540 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20230906/6769e45e/attachment-0001.bin>
More information about the lyx-devel
mailing list