]> git.lyx.org Git - features.git/commitdiff
Make cell index of tabular local for column loop.
authorStephan Witt <switt@lyx.org>
Wed, 12 Feb 2020 11:32:31 +0000 (12:32 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 18 Jun 2020 13:48:52 +0000 (15:48 +0200)
src/insets/InsetTabular.cpp

index bc57e1a680dc8f43f61ffa5320530ef7b58231d6..7b4db191732032526bf4d72872f749744a16025b 100644 (file)
@@ -3024,8 +3024,6 @@ void Tabular::TeXRow(otexstream & os, row_type row,
                     OutputParams const & runparams,
                     list<col_type> columns, list<col_type> logical_columns) const
 {
-       idx_type cell = cellIndex(row, 0);
-
        //output the top line
        TeXTopHLine(os, row, columns, logical_columns);
 
@@ -3061,7 +3059,7 @@ void Tabular::TeXRow(otexstream & os, row_type row,
                if (isPartOfMultiColumn(row, c))
                        continue;
 
-               cell = cellIndex(row, c);
+               idx_type cell = cellIndex(row, c);
 
                if (isPartOfMultiRow(row, c)
                    && column_info[c].alignment != LYX_ALIGN_DECIMAL) {