On Mon, Aug 13, 2007 at 04:28:37PM -0400, Bennett Helm wrote:
> In one document, I use multicols and tables. With current 1.5.x, that
> document fails to typeset (complaining of a "Misplaced \omit:
> \multicolumn{1}{c|}{}\multicolumn{1}{c|}{}
> \tabularnewline
> I expect to see \omit only after tab marks or the \cr of
> an alignment. Proceed, and I'll ignore this case.")
>
> With 1.5.1, the document typesets with no problem. Checking the LaTeX LyX
> produces, I note that it is different. And compiling various versions of LyX
> I find that the change was introduced in changeset 19390. I also notice that
> LyX's on-screen display of the table with recent svn is messed up, with
> overlapping lines of text and text going outside cell borders. Moving the
> cursor into this area results in a crash.
>
> I have to run now, but let me know what details would be helpful: backtrace,
> minimal problem file, ....
>
> Bennett
Please try the attached. Seems too much got removed by the
580 patch, including a stone-age mysterious-looking
DIY assertion. The attached puts in a real assert instead.
Sorry for the breakage.
- Martin
Index: InsetTabular.cpp
===================================================================
--- InsetTabular.cpp (revision 19450)
+++ InsetTabular.cpp (working copy)
@@ -766,9 +766,12 @@
if (cell_info[row][column].multicolumn
!= Tabular::CELL_PART_OF_MULTICOLUMN)
++numberofcells;
+ // Shouldn't happen after above fix - MV
+ BOOST_ASSERT(numberofcells == 0);
+ cell_info[row][column].cellno =
+ numberofcells - 1;
}
}
-
rowofcell.resize(numberofcells);
columnofcell.resize(numberofcells);