]> git.lyx.org Git - lyx.git/blobdiff - src/tests/check_Length.cpp
Disable direct insertion of multiple spaces in mathed text
[lyx.git] / src / tests / check_Length.cpp
index 8311e45eaa766919b9e186e973580c390cd7a79a..cfd449ce784f6721782fb2d0f5a2641dc554044a 100644 (file)
@@ -1,8 +1,8 @@
 #include <config.h>
 
-#include "../Length.h"
-#include "../LyXRC.h"
-#include "../support/debug.h"
+#include "LyXRC.h"
+#include "support/debug.h"
+#include "support/Length.h"
 
 #include <iostream>
 
@@ -14,11 +14,11 @@ using namespace std;
 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;
        }
 }
 
@@ -27,7 +27,7 @@ void test_inBP()
 {
        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;
        }
 }