From 249e97e216dddda8b1fc0d117ffaf292f9bc8642 Mon Sep 17 00:00:00 2001 From: Martin Vermeer Date: Tue, 14 Aug 2007 14:21:46 +0000 Subject: [PATCH] fixing the 580 fix also for trunk git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19559 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/InsetTabular.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp index 525509b4da..1b86dc316c 100644 --- a/src/insets/InsetTabular.cpp +++ b/src/insets/InsetTabular.cpp @@ -764,6 +764,9 @@ void Tabular::set_row_column_number_info() if (cell_info[row][column].multicolumn != Tabular::CELL_PART_OF_MULTICOLUMN) ++numberofcells; + BOOST_ASSERT(numberofcells != 0); + cell_info[row][column].cellno = + numberofcells - 1; } }