]> git.lyx.org Git - lyx.git/blob - src/mathed/InsetMathDim.C
Fix bug 2789 (as discussed)
[lyx.git] / src / mathed / InsetMathDim.C
1 /**
2  * \file InsetMathDim.C
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 "InsetMathDim.h"
14 #include "coordcache.h"
15 #include "debug.h"
16
17
18 InsetMathDim::InsetMathDim()
19 {}
20
21
22 int InsetMathDim::ascent() const
23 {
24         return dim_.asc;
25 }
26
27
28 int InsetMathDim::descent() const
29 {
30         return dim_.des;
31 }
32
33
34 int InsetMathDim::width() const
35 {
36         return dim_.wid;
37 }
38
39
40 void InsetMathDim::setPosCache(PainterInfo const &, int x, int y) const
41 {
42         //lyxerr << "InsetMathDim: cache to " << x << " " << y << std::endl;
43         theCoords.insets().add(this, x, y);
44 }