bring red color back

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2434 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2001-08-07 05:37:18 +00:00
parent 9d5c326eaf
commit 2bc240251e
4 changed files with 13 additions and 5 deletions

View File

@ -11,6 +11,8 @@
* formulabase.[Ch]: remove unneeded convertFont()
* math_funcinset.[Ch]: bring red color back
2001-08-01 André Pönitz <poenitz@gmx.net>
* math_cursor.C:

View File

@ -42,9 +42,9 @@ void MathFuncInset::metrics(MathStyles st) const
{
size_ = st;
if (name_.empty())
mathed_char_dim(LM_TC_TEXTRM, size_, 'I', ascent_, descent_, width_);
mathed_char_dim(LM_TC_TEX, size_, 'I', ascent_, descent_, width_);
else
mathed_string_dim(LM_TC_TEXTRM, size_, name_, ascent_, descent_, width_);
mathed_string_dim(LM_TC_TEX, size_, name_, ascent_, descent_, width_);
}
@ -53,7 +53,7 @@ void MathFuncInset::draw(Painter & pain, int x, int y) const
xo(x);
yo(y);
if (name_.empty())
drawChar(pain, LM_TC_TEXTRM, size_, x, y, ' ');
drawChar(pain, LM_TC_TEX, size_, x, y, ' ');
else
drawStr(pain, LM_TC_TEXTRM, size_, x, y, name_);
drawStr(pain, LM_TC_TEX, size_, x, y, name_);
}

View File

@ -59,6 +59,12 @@ void MathMacroArgument::write(std::ostream & os, bool /*fragile*/) const
}
void MathMacroArgument::metrics(MathStyles st) const
{
size_ = st;
}
void MathMacroArgument::writeNormal(std::ostream & os) const
{
os << "[macroarg " << number_ << "] ";

View File

@ -18,7 +18,7 @@ public:
///
MathInset * clone() const;
///
//void metrics(MathStyles st) const;
void metrics(MathStyles st) const;
///
void draw(Painter &, int x, int y) const;
///