[email protected] schreef:
Author: vfr
Date: Tue Feb 10 01:02:39 2009
New Revision: 28427

URL: http://www.lyx.org/trac/changeset/28427
Log:
Fix bug 5753: http://bugzilla.lyx.org/show_bug.cgi?id=5753.
Crash when setting caption on a row with a multicolumn.

If there is already a multicolumn on the row, the number of cells is different 
from column_info.size().

Modified:
    lyx-devel/trunk/src/insets/InsetTabular.cpp

Modified: lyx-devel/trunk/src/insets/InsetTabular.cpp
URL: 
http://www.lyx.org/trac/file/lyx-devel/trunk/src/insets/InsetTabular.cpp?rev=28427
==============================================================================
--- lyx-devel/trunk/src/insets/InsetTabular.cpp (original)
+++ lyx-devel/trunk/src/insets/InsetTabular.cpp Tue Feb 10 01:02:39 2009
@@ -1745,7 +1745,7 @@
 {
        idx_type i = getFirstCellInRow(row);
        if (what) {
-               setMultiColumn(i, column_info.size());
+               setMultiColumn(i, numberOfCellsInRow(i));
                setTopLine(i, false);
                setBottomLine(i, false);
                setLeftLine(i, false);


It's getting a bit boring, but uhhm... also for branch ?

Vincetn

Reply via email to