change variable name

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4456 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
John Levon 2002-06-21 13:50:57 +00:00
parent 13430adc9a
commit 44ef0657e2
2 changed files with 10 additions and 6 deletions

View File

@ -1,3 +1,7 @@
2002-06-21 John Levon <moz@compsoc.man.ac.uk>
* qfont_metrics.C: fix variable names
2002-06-21 John Levon <moz@compsoc.man.ac.uk>
* QWorkArea.C: remove dead splash code

View File

@ -113,11 +113,11 @@ void rectText(string const & str, LyXFont const & f,
int & ascent,
int & descent)
{
QFontMetrics const & metrics(metrics(f));
QFontMetrics const & m(metrics(f));
w = width(str, f);
ascent = metrics.ascent();
descent = metrics.descent();
ascent = m.ascent();
descent = m.descent();
}
@ -127,13 +127,13 @@ void buttonText(string const & str, LyXFont const & f,
int & ascent,
int & descent)
{
QFontMetrics const & metrics(metrics(f));
QFontMetrics const & m(metrics(f));
static int const d = 3;
w = width(str, f) + d * 2 + 2;
ascent = metrics.ascent() + d;
descent = metrics.descent() + d;
ascent = m.ascent() + d;
descent = m.descent() + d;
}
} // namespace font_metrics