commit 970da7c5e275c7bed3bf14aadd4f7c5bed4b1850
Author: Enrico Forestieri <for...@lyx.org>
Date:   Sun Jun 8 23:59:59 2014 +0200

    Fix bug #9153 (Using mathpanel to insert matrix creates extra space on top)
    
    The code was setting the current index before filling the
    combo box items.

diff --git a/src/frontends/qt4/GuiMathMatrix.cpp 
b/src/frontends/qt4/GuiMathMatrix.cpp
index 8106629..457b749 100644
--- a/src/frontends/qt4/GuiMathMatrix.cpp
+++ b/src/frontends/qt4/GuiMathMatrix.cpp
@@ -63,6 +63,11 @@ GuiMathMatrix::GuiMathMatrix(GuiView & lv)
 {
        setupUi(this);
 
+       for (int i = 0; *VertAligns[i]; ++i)
+               valignCO->addItem(qt_(VertAligns[i]));
+       for (int i = 0; *DecoChars[i]; ++i)
+               decorationCO->addItem(qt_(DecoChars[i]));
+
        table->setMinimumSize(100, 100);
        rowsSB->setValue(5);
        columnsSB->setValue(5);
@@ -91,11 +96,6 @@ GuiMathMatrix::GuiMathMatrix(GuiView & lv)
        connect(decorationCO, SIGNAL(activated(int)),
                this, SLOT(decorationChanged(int)));
 
-       for (int i = 0; *VertAligns[i]; ++i)
-               valignCO->addItem(qt_(VertAligns[i]));
-       for (int i = 0; *DecoChars[i]; ++i)
-               decorationCO->addItem(qt_(DecoChars[i]));
-
        bc().setPolicy(ButtonPolicy::IgnorantPolicy);
 }
 
diff --git a/status.21x b/status.21x
index 97fc377..c86f5da 100644
--- a/status.21x
+++ b/status.21x
@@ -155,6 +155,9 @@ We have fixed several significant issues involving 
conversion of 2.0
 
 - Fix keyborad input of cyrillic characters in program listings (bug 9102).
 
+- Fix default vertical alignment when inserting a math matrix through the
+  math toolbar or context menu (bug 9153).
+
 
 * INTERNALS
 

Reply via email to