]> git.lyx.org Git - features.git/commitdiff
InsetTabular: fix resetting reset decimal alignment
authorUwe Stöhr <uwestoehr@lyx.org>
Wed, 12 Sep 2012 22:41:57 +0000 (00:41 +0200)
committerUwe Stöhr <uwestoehr@lyx.org>
Wed, 12 Sep 2012 22:41:57 +0000 (00:41 +0200)
If no special alignment is set the default is center not left - my mistake

src/insets/InsetTabular.cpp

index d96de8fa360f678b5181189f04e29ad498bcf15d..840f3cbddd15685907c00087b4e25394351f0e9b 100644 (file)
@@ -5235,7 +5235,7 @@ void InsetTabular::tabularFeatures(Cursor & cur,
 
        case Tabular::ALIGN_DECIMAL:
                if (tabular.column_info[tabular.cellColumn(cur.idx())].alignment == LYX_ALIGN_DECIMAL)
-                       setAlign = LYX_ALIGN_LEFT;
+                       setAlign = LYX_ALIGN_CENTER;
                else
                        setAlign = LYX_ALIGN_DECIMAL;
                break;