Length::Length(string const & data)
- : val_(0), unit_(Length::PT)
+ : val_(0), unit_(Length::UNIT_NONE)
{
Length tmp;
int Length::inPixels(int text_width, int em_width_base) const
{
// Zoom factor specified by user in percent
- double const zoom = lyxrc.zoom / 100.0; // [percent]
+ double const zoom = lyxrc.currentZoom / 100.0; // [percent]
// DPI setting for monitor: pixels/inch
double const dpi = lyxrc.dpi; // screen resolution [pixels/inch]