mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-13 14:32:04 +00:00
2b8ef58dc0
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3804 a592a061-630c-0410-9148-cb99ea01b6c8
22 lines
386 B
C
22 lines
386 B
C
#include "math_diminset.h"
|
|
#include "Lsstream.h"
|
|
#include "textpainter.h"
|
|
|
|
|
|
void MathDimInset::metricsT(TextMetricsInfo const &) const
|
|
{
|
|
std::ostringstream os;
|
|
os << *this;
|
|
width_ = int(os.str().size());
|
|
ascent_ = 1;
|
|
descent_ = 0;
|
|
}
|
|
|
|
|
|
void MathDimInset::drawT(TextPainter & pain, int x, int y) const
|
|
{
|
|
std::ostringstream os;
|
|
os << *this;
|
|
pain.draw(x, y, os.str().c_str());
|
|
}
|