]> git.lyx.org Git - lyx.git/commitdiff
Initialize is_long_tabular before updateIndexes() (which employs it)
authorJuergen Spitzmueller <spitz@lyx.org>
Mon, 20 May 2024 06:50:39 +0000 (08:50 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Mon, 20 May 2024 15:59:30 +0000 (17:59 +0200)
(cherry picked from commit 10b5f03d95dca8f3e8c225aa2deca4d473f8b169)

src/insets/InsetTabular.cpp

index 5242775e7fe7dd9f7339228985a982bb3bfe9880..da8e4269352a0d10ad9ae10ed4cca00e3f913b66 100644 (file)
@@ -783,8 +783,8 @@ void Tabular::init(Buffer * buf, row_type rows_arg,
        row_info.reserve(10);
        column_info.reserve(10);
        cell_info.reserve(100);
-       updateIndexes();
        is_long_tabular = false;
+       updateIndexes();
        tabular_valignment = LYX_VALIGN_MIDDLE;
        tabular_width = Length();
        longtabular_alignment = LYX_LONGTABULAR_ALIGN_CENTER;