mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +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 == '[')
|
||||
break;
|
||||
getline(is, s);
|
||||
c = s[0];
|
||||
if (c == 0 || c == '#' || c == ' ' || !FileName::isAbsolute(s))
|
||||
if (s.empty() || s[0] == '#' || s[0] == ' ' || !FileName::isAbsolute(s))
|
||||
continue;
|
||||
|
||||
// read shellescape files
|
||||
|
Loading…
Reference in New Issue
Block a user