mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-10 20:04:46 +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)
|
||||
{
|
||||
xcell(0).Metrics(st);
|
||||
size_ = st;
|
||||
width_ = xcell(0).width();
|
||||
ascent_ = xcell(0).ascent();
|
||||
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_) {
|
||||
dy_ = -ascent_ - dh_;
|
||||
ascent_ += dh_ + 1;
|
||||
dy_ = -ascent_;
|
||||
} else {
|
||||
dy_ = descent_ + 1;
|
||||
descent_ += dh_ + 2;
|
||||
|
Loading…
Reference in New Issue
Block a user