mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-21 23:09:40 +00:00
Fix drawing glitch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2217 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
88b5d739b5
commit
fa867bfd55
@ -31,15 +31,16 @@ MathInset * MathDecorationInset::clone() const
|
|||||||
void MathDecorationInset::Metrics(MathStyles st)
|
void MathDecorationInset::Metrics(MathStyles st)
|
||||||
{
|
{
|
||||||
xcell(0).Metrics(st);
|
xcell(0).Metrics(st);
|
||||||
|
size_ = st;
|
||||||
width_ = xcell(0).width();
|
width_ = xcell(0).width();
|
||||||
ascent_ = xcell(0).ascent();
|
ascent_ = xcell(0).ascent();
|
||||||
descent_ = xcell(0).descent();
|
descent_ = xcell(0).descent();
|
||||||
|
|
||||||
dh_ = mathed_char_height(LM_TC_VAR, size(), 'I', ascent_, descent_);
|
dh_ = 5; //mathed_char_height(LM_TC_VAR, size(), 'I', ascent_, descent_);
|
||||||
|
|
||||||
if (upper_) {
|
if (upper_) {
|
||||||
|
dy_ = -ascent_ - dh_;
|
||||||
ascent_ += dh_ + 1;
|
ascent_ += dh_ + 1;
|
||||||
dy_ = -ascent_;
|
|
||||||
} else {
|
} else {
|
||||||
dy_ = descent_ + 1;
|
dy_ = descent_ + 1;
|
||||||
descent_ += dh_ + 2;
|
descent_ += dh_ + 2;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user