]> git.lyx.org Git - features.git/commit
Fix crash due to encoding issues with child doc
authorScott Kostyshak <skostysh@lyx.org>
Mon, 9 Dec 2019 00:14:38 +0000 (19:14 -0500)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 18 Jun 2020 13:48:46 +0000 (15:48 +0200)
commit37b7e78b625b895e10cbaa0ed4f0854539dd9f45
treeb3e319d9686a4baca90e88dfba05c54c68f465af
parent5d63725870ea69c8320e8cd5549d4027b378b889
Fix crash due to encoding issues with child doc

This crash occurred starting with 553bebc3, and can be triggered
when preview is enabled both in preferences and in a child document
inset. For a minimal example, see the following ML thread:

  https://www.mail-archive.com/search?l=mid&q=20191209002609.6fao3dljtf3ohl25%40tallinn

This fix restores behavior to before that commit for the case when
oldEnc is 0.
src/insets/InsetInclude.cpp