]> git.lyx.org Git - lyx.git/blobdiff - src/graphics/GraphicsParams.cpp
Fix crash with updateLabels(). I changed the the test in the assertion but endless...
[lyx.git] / src / graphics / GraphicsParams.cpp
index d13dc1800fdc0737f4ca8dc37b7cd2e954425e8e..0677d95b2abc4d066e194a7ca8ccaedcb399611d 100644 (file)
@@ -12,7 +12,7 @@
 
 #include "GraphicsParams.h"
 
-#include "lyxlength.h"
+#include "Length.h"
 
 #include <sstream>
 
@@ -71,10 +71,10 @@ BoundingBox::BoundingBox(string const & bb)
 
        // inBP returns the length in Postscript points.
        // Note further that there are 72 Postscript pixels per inch.
-       unsigned int const xl_tmp = abs(LyXLength(a).inBP());
-       unsigned int const yb_tmp = abs(LyXLength(b).inBP());
-       unsigned int const xr_tmp = abs(LyXLength(c).inBP());
-       unsigned int const yt_tmp = abs(LyXLength(d).inBP());
+       unsigned int const xl_tmp = abs(Length(a).inBP());
+       unsigned int const yb_tmp = abs(Length(b).inBP());
+       unsigned int const xr_tmp = abs(Length(c).inBP());
+       unsigned int const yt_tmp = abs(Length(d).inBP());
 
        if (xr_tmp <= xl_tmp || yt_tmp <= yb_tmp)
                return;