Fix crash

This commit is contained in:
Juergen Spitzmueller 2014-02-06 13:07:00 +01:00
parent b13f5dee53
commit 6837345209

View File

@ -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;