]> git.lyx.org Git - features.git/commitdiff
TextMetrics.cpp: fix bug that AlignRight were aligned like Inline
authorUwe Stöhr <uwestoehr@web.de>
Sat, 11 Jul 2009 11:30:41 +0000 (11:30 +0000)
committerUwe Stöhr <uwestoehr@web.de>
Sat, 11 Jul 2009 11:30:41 +0000 (11:30 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30474 a592a061-630c-0410-9148-cb99ea01b6c8

src/TextMetrics.cpp

index 4a75da54b89f11cac1673309fc27a22bf5979568..c17bf2180a279a13a23bfedf0b4e08613b7d015b 100644 (file)
@@ -571,9 +571,11 @@ void TextMetrics::computeRowMetrics(pit_type const pit,
                                        align = LYX_ALIGN_CENTER;
                                        break;
                                case Inset::Inline:
-                               case Inset::AlignRight:
                                        // unchanged (use align)
                                        break;
+                               case Inset::AlignRight:
+                                       align = LYX_ALIGN_RIGHT;
+                                       break;
                        }
                }