]> 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)
committerScott Kostyshak <skostysh@lyx.org>
Tue, 10 Dec 2019 14:17:49 +0000 (09:17 -0500)
commitc61472303e4ea1d59d1f26e9d4a516dd2c50feb2
tree4b13124a8b19bd53966ec0e145c3fee3f8f5accd
parent2e784b2f061d23f179b263d685789526e5872ea8
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