]> git.lyx.org Git - features.git/blobdiff - src/frontends/qt4/LayoutBox.cpp
Fixing ASSERT on re-opening of Advanced F&R with cursor on a text style non-existing...
[features.git] / src / frontends / qt4 / LayoutBox.cpp
index c46ce4553837667ea10dd16e16a3bc166cf9349f..df4b076a279deaa9e57bd1299b423f2167188e85 100644 (file)
@@ -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());