From 63ede7357afa334e616e7d4d30cb6e295f13074c Mon Sep 17 00:00:00 2001 From: Stephan Witt Date: Wed, 12 Feb 2020 12:32:31 +0100 Subject: [PATCH] Make cell index of tabular local for column loop. --- src/insets/InsetTabular.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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) { -- 2.39.5