From: Stephan Witt Date: Wed, 12 Feb 2020 11:32:31 +0000 (+0100) Subject: Make cell index of tabular local for column loop. X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=63ede7357afa334e616e7d4d30cb6e295f13074c;p=features.git Make cell index of tabular local for column loop. --- diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp index bc57e1a680..7b4db19173 100644 --- a/src/insets/InsetTabular.cpp +++ b/src/insets/InsetTabular.cpp @@ -3024,8 +3024,6 @@ void Tabular::TeXRow(otexstream & os, row_type row, OutputParams const & runparams, list columns, list 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) {