mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Fix assertion in editing math (bug #8946)
This commit is contained in:
parent
1ec10ad964
commit
b13f5dee53
@ -1666,13 +1666,13 @@ void MenuDefinition::expandEnvironmentSeparators(BufferView const * bv)
|
||||
if (!bv)
|
||||
return;
|
||||
|
||||
Paragraph const par = bv->cursor().paragraph();
|
||||
pit_type pit = bv->cursor().pit();
|
||||
Paragraph const & par = bv->buffer().text().getPar(pit);
|
||||
docstring const curlayout = par.layout().name();
|
||||
docstring outerlayout;
|
||||
depth_type current_depth = par.params().depth();
|
||||
// check if we have an environment in our nesting hierarchy
|
||||
pit_type pit = bv->cursor().pit();
|
||||
Paragraph cpar = bv->buffer().text().getPar(pit);
|
||||
Paragraph cpar = par;
|
||||
while (true) {
|
||||
if (pit == 0 || cpar.params().depth() == 0)
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user