1 /**
2  * \file Dimension.cpp
3  * This file is part of LyX, the document processor.
4  * Licence details can be found in the file COPYING.
5  *
6  *  \author André Pönitz
7  *
8  * Full author contact details are available in file CREDITS.
9  */
10 
11 #include <config.h>
12 
13 #include "Dimension.h"
14 
15 #include "support/lassert.h"
16 
17 namespace lyx {
18 
operator +=(Dimension const & dim)19 void Dimension::operator+=(Dimension const & dim)
20 {
21 	if (asc < dim.asc)
22 		asc = dim.asc;
23 	if (des < dim.des)
24 		des = dim.des;
25 	wid += dim.wid;
26 }
27 
28 
Point(int x,int y)29 Point::Point(int x, int y) : x_(x), y_(y)
30 {
31 	LASSERT(x > -1000000, x_ = -1000000);
32 	LASSERT(x <  1000000, x_ =  1000000);
33 	LASSERT(y > -1000000, y_ = -1000000);
34 	LASSERT(y <  1000000, y_ =  1000000);
35 }
36 
37 } // namespace lyx
38