#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"
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);
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