commit 923ab0734d7374c505f314fef73909c405771ff8
Author: Georg Baum <[email protected]>
Date:   Mon May 19 22:07:04 2014 +0200

    Move code where it belongs
    
    It is declared in Dimension.h, so the implementation should be in
    Dimension.cpp.

diff --git a/src/CoordCache.cpp b/src/CoordCache.cpp
index 6865039..827697e 100644
--- a/src/CoordCache.cpp
+++ b/src/CoordCache.cpp
@@ -23,16 +23,6 @@
 
 namespace lyx {
 
-Point::Point(int x, int y)
-       : x_(x), y_(y)
-{
-       LASSERT(x > -1000000, x = -1000000);
-       LASSERT(x <  1000000, x =  1000000);
-       LASSERT(y > -1000000, y = -1000000);
-       LASSERT(y <  1000000, y =  1000000);
-}
-
-
 // just a helper to be able to set a breakpoint
 void lyxbreaker(void const * data, const char * hint, int size)
 {
diff --git a/src/Dimension.cpp b/src/Dimension.cpp
index b1cd41e..ea1d244 100644
--- a/src/Dimension.cpp
+++ b/src/Dimension.cpp
@@ -12,6 +12,8 @@
 
 #include "Dimension.h"
 
+#include "support/lassert.h"
+
 namespace lyx {
 
 void Dimension::operator+=(Dimension const & dim)
@@ -23,4 +25,13 @@ void Dimension::operator+=(Dimension const & dim)
        wid += dim.wid;
 }
 
+
+Point::Point(int x, int y) : x_(x), y_(y)
+{
+       LASSERT(x > -1000000, x = -1000000);
+       LASSERT(x <  1000000, x =  1000000);
+       LASSERT(y > -1000000, y = -1000000);
+       LASSERT(y <  1000000, y =  1000000);
+}
+
 } // namespace lyx

Reply via email to