]> git.lyx.org Git - features.git/blobdiff - src/Text3.cpp
Add InsertCotext tag also to InsetLayout argument (part of #4745)
[features.git] / src / Text3.cpp
index 63e6a94a6ad8d5e5f182ff8458aa9401bc6e876d..8707b76062d8c6569981cf00cc91cccc98cae628 100644 (file)
@@ -273,6 +273,13 @@ static bool doInsertInset(Cursor & cur, Text * text,
                Layout::LaTeXArgMap::const_iterator const lait = args.find(ia->name());
                if (lait != args.end())
                        cotextinsert = (*lait).second.insertcotext;
+               else {
+                       InsetLayout const & il = cur.inset().getLayout();
+                       args = il.args();
+                       Layout::LaTeXArgMap::const_iterator const ilait = args.find(ia->name());
+                       if (ilait != args.end())
+                               cotextinsert = (*ilait).second.insertcotext;
+               }
                // The argument requests to insert a copy of the co-text to the inset
                if (cotextinsert) {
                        docstring ds;