X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FGuiBox.cpp;h=087f8663a64c36e337f878d83bacda1dbba102ce;hb=425d092204118ea6c24c28e85fdf03fcf2bb51a4;hp=ff4fb6f3348650688fc43855702d1b0f9be19c7f;hpb=92c30f429461a5927253fd84e6d073cbce154c3d;p=lyx.git diff --git a/src/frontends/qt4/GuiBox.cpp b/src/frontends/qt4/GuiBox.cpp index ff4fb6f334..087f8663a6 100644 --- a/src/frontends/qt4/GuiBox.cpp +++ b/src/frontends/qt4/GuiBox.cpp @@ -17,7 +17,6 @@ #include "FuncRequest.h" #include "LengthCombo.h" #include "Length.h" -#include "LyXRC.h" // to set the default length values #include "qt_helpers.h" #include "Validator.h" @@ -265,8 +264,7 @@ void GuiBox::updateContents() halignCO->setEnabled(!ibox); setSpecial(ibox); - Length::UNIT default_unit = - (lyxrc.default_papersize > 3) ? Length::CM : Length::IN; + Length::UNIT const default_unit = Length::defaultUnit(); lengthToWidgets(widthED, widthUnitsLC, (params_.width).asString(), default_unit); @@ -322,7 +320,7 @@ void GuiBox::applyView() params_.width = Length(widgetsToLength(widthED, widthUnitsLC)); } - // the height parameter is omitted in if the value + // the height parameter is omitted if the value // is "1in" and "Total Height" is used as unit. // 1in + "Total Height" means "1\height" which is the LaTeX default // if no height is given