void test_inPixels()
{
// want to see non-zero SP
- lyxrc.zoom = 100000;
+ lyxrc.currentZoom = 100000;
lyxrc.dpi = 72;
for (int i = Length::BP; i <= Length::UNIT_NONE; ++i) {
Length const l(2342, static_cast<Length::UNIT>(i));
- cout << l.inPixels(250) << endl;
+ cout << l.inPixels(250) << " pix(250) = " << l.asString() << endl;
}
}
{
for (int i = Length::BP; i <= Length::UNIT_NONE; ++i) {
Length const l(2342, static_cast<Length::UNIT>(i));
- cout << l.inBP() << endl;
+ cout << l.inBP() << " BP = " << l.asString() << endl;
}
}