mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 13:31:49 +00:00
Add missing check for nullptr on check of language encoding of next paragraph.
This commit is contained in:
parent
f904fb2d61
commit
fc790bc1f5
@ -1378,7 +1378,8 @@ void TeXOnePar(Buffer const & buf,
|
||||
if (nextpar && state->open_encoding_ == CJK
|
||||
&& bparams.encoding().iconvName() != "UTF-8"
|
||||
&& bparams.encoding().package() != Encoding::CJK
|
||||
&& (nextpar_language->encoding()->package() != Encoding::CJK
|
||||
&& ((nextpar_language &&
|
||||
nextpar_language->encoding()->package() != Encoding::CJK)
|
||||
|| (nextpar->layout().isEnvironment() && nextpar->isMultiLingual(bparams)))
|
||||
// inbetween environments, CJK has to be closed later (nesting!)
|
||||
&& (!style.isEnvironment() || !nextpar->layout().isEnvironment())) {
|
||||
|
Loading…
Reference in New Issue
Block a user