mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Fix crash
This commit is contained in:
parent
b13f5dee53
commit
6837345209
@ -1666,7 +1666,7 @@ void MenuDefinition::expandEnvironmentSeparators(BufferView const * bv)
|
||||
if (!bv)
|
||||
return;
|
||||
|
||||
pit_type pit = bv->cursor().pit();
|
||||
pit_type pit = bv->cursor().selBegin().pit();
|
||||
Paragraph const & par = bv->buffer().text().getPar(pit);
|
||||
docstring const curlayout = par.layout().name();
|
||||
docstring outerlayout;
|
||||
|
Loading…
Reference in New Issue
Block a user