mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
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.
This commit is contained in:
parent
79dcf402b1
commit
ba603db942
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user