mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Avoid asserting when reading the session file
Fixes #10824.
(cherry picked from commit f84acc0e34
)
This commit is contained in:
parent
e3494c2f3a
commit
4e753bdc3f
@ -507,8 +507,7 @@ void ShellEscapeSection::read(istream & is)
|
|||||||
if (c == '[')
|
if (c == '[')
|
||||||
break;
|
break;
|
||||||
getline(is, s);
|
getline(is, s);
|
||||||
c = s[0];
|
if (s.empty() || s[0] == '#' || s[0] == ' ' || !FileName::isAbsolute(s))
|
||||||
if (c == 0 || c == '#' || c == ' ' || !FileName::isAbsolute(s))
|
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
// read shellescape files
|
// read shellescape files
|
||||||
|
Loading…
Reference in New Issue
Block a user