]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetTabular.cpp
Fix UI for decimal table alignment (bug #8285)
[features.git] / src / insets / InsetTabular.cpp
index 58505cc45cc0067071b92d26c602873bd466f0cb..d96de8fa360f678b5181189f04e29ad498bcf15d 100644 (file)
@@ -5234,7 +5234,10 @@ void InsetTabular::tabularFeatures(Cursor & cur,
                break;
 
        case Tabular::ALIGN_DECIMAL:
-               setAlign = LYX_ALIGN_DECIMAL;
+               if (tabular.column_info[tabular.cellColumn(cur.idx())].alignment == LYX_ALIGN_DECIMAL)
+                       setAlign = LYX_ALIGN_LEFT;
+               else
+                       setAlign = LYX_ALIGN_DECIMAL;
                break;
 
        case Tabular::M_VALIGN_TOP: