]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/QBoxDialog.C
enable Font cache only for MacOSX and inline width() for other platform.
[lyx.git] / src / frontends / qt4 / QBoxDialog.C
index 4b7f5b672a8e44c439a908a718a6fe46314494a7..43cdfce5880acbc669a346f400404ff566c5a515 100644 (file)
@@ -92,7 +92,7 @@ void QBoxDialog::typeChanged(int index)
                heightUnitsLC->setEnabled(true);
                form_->setSpecial(true);
        }
-       int itype = innerBoxCO->currentItem();
+       int itype = innerBoxCO->currentIndex();
        form_->setInnerType(frameless, itype);
 }
 
@@ -104,10 +104,12 @@ void QBoxDialog::restoreClicked()
        widthUnitsLC->setCurrentItem(LyXLength::PCW);
        heightED->setText("1");
        for (int j = 0; j < heightUnitsLC->count(); j++) {
-               if (heightUnitsLC->text(j) == qt_("Total Height"))
+               if (heightUnitsLC->itemText(j) == qt_("Total Height"))
                        heightUnitsLC->setCurrentItem(j);
        }
 }
 
 } // namespace frontend
 } // namespace lyx
+
+#include "QBoxDialog_moc.cpp"