From 2548e7fd98cad7a6f1fc65c9d4d32230a3bcd6ca Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Mon, 18 May 2015 13:05:28 +0200 Subject: [PATCH] GuiBox: simplification --- src/frontends/qt4/GuiBox.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/frontends/qt4/GuiBox.cpp b/src/frontends/qt4/GuiBox.cpp index da2abe8f43..ad49cad49a 100644 --- a/src/frontends/qt4/GuiBox.cpp +++ b/src/frontends/qt4/GuiBox.cpp @@ -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)