]> git.lyx.org Git - features.git/commitdiff
Fix logic in tabular dialog with decimal alignment
authorJuergen Spitzmueller <spitz@lyx.org>
Mon, 25 May 2015 13:55:11 +0000 (15:55 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Mon, 25 May 2015 13:55:11 +0000 (15:55 +0200)
Fixes: #9570
Partially reverts [9d05ac5c912/lyxgit].

src/insets/InsetTabular.cpp

index 24bab873acf68e738ec0176213e9f42dbcfe5789..7ae5bc035848bd4b186bfac010ccf767e95a804d 100644 (file)
@@ -5402,10 +5402,7 @@ void InsetTabular::tabularFeatures(Cursor & cur,
                break;
 
        case Tabular::ALIGN_DECIMAL:
-               if (tabular.column_info[tabular.cellColumn(cur.idx())].alignment == LYX_ALIGN_DECIMAL)
-                       setAlign = LYX_ALIGN_CENTER;
-               else
-                       setAlign = LYX_ALIGN_DECIMAL;
+               setAlign = LYX_ALIGN_DECIMAL;
                break;
 
        case Tabular::M_VALIGN_TOP: