mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 10:58:52 +00:00
Fixing ASSERT on re-opening of Advanced F&R with cursor on a text style non-existing in the currently opened document.
Addressing #7812. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39886 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
f8c5c51460
commit
ec0fce7d44
@ -534,6 +534,9 @@ void LayoutBox::set(docstring const & layout)
|
||||
if (!d->text_class_)
|
||||
return;
|
||||
|
||||
if (!(*d->text_class_).hasLayout(layout))
|
||||
return;
|
||||
|
||||
Layout const & lay = (*d->text_class_)[layout];
|
||||
QString newLayout = toqstr(lay.name());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user