]> git.lyx.org Git - features.git/commitdiff
GuiBox: simplification
authorJuergen Spitzmueller <spitz@lyx.org>
Mon, 18 May 2015 11:05:28 +0000 (13:05 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Mon, 18 May 2015 11:05:28 +0000 (13:05 +0200)
src/frontends/qt4/GuiBox.cpp

index da2abe8f43f89837adcfe6db2ddc975d02b1910e..ad49cad49a4d84a0ee49ec0dba64d4a6c5417053 100644 (file)
@@ -183,10 +183,9 @@ void GuiBox::fillComboColor(QComboBox * combo, bool const is_none)
 }
 
 
-void GuiBox::on_innerBoxCO_activated(int /* index */)
+void GuiBox::on_innerBoxCO_activated(int index)
 {
-       QString itype =
-               innerBoxCO->itemData(innerBoxCO->currentIndex()).toString();
+       QString itype = innerBoxCO->itemData(index).toString();
        // handle parbox and minipage the same way
        bool const ibox = (itype != "none" && itype != "makebox");
        if (heightCB->isChecked() && !ibox)