mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 18:08:10 +00:00
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:
parent
13430adc9a
commit
44ef0657e2
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user