mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-03 08:28:25 +00:00
Squash a couple of MSVC warnings about "truncation of constant value".
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9629 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
b9ec5a5146
commit
c8974fe9d3
@ -1,3 +1,8 @@
|
||||
2005-02-14 Angus Leeming <leeming@lyx.org>
|
||||
|
||||
* insetlatexaccent.C (draw): squash a couple of MSVC warnings
|
||||
about "truncation of constant value".
|
||||
|
||||
2005-02-08 Georg Baum <Georg.Baum@post.rwth-aachen.de>
|
||||
|
||||
* insetgraphics.C (latex): Remove line continuation '%\n' (bug xxx,
|
||||
|
@ -422,15 +422,19 @@ void InsetLatexAccent::draw(PainterInfo & pi, int x, int baseline) const
|
||||
drawAccent(pi, x2, baseline, '~');
|
||||
break;
|
||||
|
||||
case UNDERBAR: // underbar 0x5F
|
||||
pi.pain.text(x2 - font_metrics::center(0x5F, font), baseline,
|
||||
char(0x5F), font);
|
||||
case UNDERBAR: {
|
||||
char const underbar(0x5F);
|
||||
pi.pain.text(x2 - font_metrics::center(underbar, font),
|
||||
baseline, underbar, font);
|
||||
break;
|
||||
}
|
||||
|
||||
case CEDILLA:
|
||||
pi.pain.text(x2 - font_metrics::center(0xB8, font), baseline,
|
||||
char(0xB8), font);
|
||||
case CEDILLA: {
|
||||
char const cedilla(0xB8);
|
||||
pi.pain.text(x2 - font_metrics::center(cedilla, font),
|
||||
baseline, cedilla, font);
|
||||
break;
|
||||
}
|
||||
|
||||
case UNDERDOT:
|
||||
pi.pain.text(x2 - font_metrics::center('.', font),
|
||||
|
Loading…
Reference in New Issue
Block a user