]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetTabular.cpp
Use new display() values to remove some inset hardcoding.
[features.git] / src / insets / InsetTabular.cpp
index 324987c8a445e6474f0b61d8a370b5e59e3c4e15..0680d93be8a7e60702400c2ee8030d602b82a926 100644 (file)
@@ -5396,13 +5396,13 @@ Inset::DisplayType InsetTabular::display() const
                if (tabular.is_long_tabular) {
                        switch (tabular.longtabular_alignment) {
                        case Tabular::LYX_LONGTABULAR_ALIGN_LEFT:
-                               return AlignLeft;
+                               return Display | AlignLeft;
                        case Tabular::LYX_LONGTABULAR_ALIGN_CENTER:
-                               return AlignCenter;
+                               return Display;
                        case Tabular::LYX_LONGTABULAR_ALIGN_RIGHT:
-                               return AlignRight;
+                               return Display | AlignRight;
                        default:
-                               return AlignCenter;
+                               return Display;
                        }
                } else
                        return Inline;