To reproduce:
Make a document with tables and text.
Make a selection that spans the whole of a table, and other text/tables
too.
Apply a font change, I used "bold sans serif".
Note that the table is rendered with sans-serif font on the screen.
View->dvi and note that the table isn't sans-serif anymore. :-(
Make a new selection, covering _only_ the cells in the table and nothing
outside it. I.e. you start the selection inside the table and finish
inside it too. Repeat the font change, notice that it works this time,
even for the dvi.
This took some time to discover, as the screen was correct but the latex
wasn't always so. Font changes only work if they are interior to the
table, otherwise only the screen gets updated and the latex will be
wrong. Documents with such "half-changed" tables may even be saved and
reloaded, the half-changed tables are preserved.
A snippet of wrong latex for the halfway case:
\textsf{\textbf{a}}\begin{tabular}{|c|c|c|c|c|}
The lyx file start with a single font change, and then text & table
happen after that. The generated latex clearly terminates the font
change before starting the table.
I don't know if this is a "latex export" bug, or a "table bug".
Helge Hafting