Can someone who actually understands that stuff have a look at the attached and tell me if it is OK?
Thanks, Richard
Index: src/Buffer.cpp =================================================================== --- src/Buffer.cpp (revision 35669) +++ src/Buffer.cpp (working copy) @@ -70,6 +70,7 @@ #include "insets/InsetBibtex.h" #include "insets/InsetBranch.h" #include "insets/InsetInclude.h" +#include "insets/InsetTabular.h" #include "insets/InsetText.h" #include "mathed/InsetMathHull.h" @@ -2732,6 +2733,17 @@ it.pop_back(); continue; } + + if (iit->inset->asInsetTabular()) { + CursorSlice slice(*iit->inset); + size_t const numcells = slice.nargs(); + for (; slice.idx() < numcells; slice.forwardIdx()) { + it.push_back(slice); + updateMacros(it, scope); + it.pop_back(); + } + continue; + } // is it an external file? if (iit->inset->lyxCode() == INCLUDE_CODE) {