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:
Angus Leeming 2005-02-15 09:50:49 +00:00
parent b9ec5a5146
commit c8974fe9d3
2 changed files with 15 additions and 6 deletions

View File

@ -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> 2005-02-08 Georg Baum <Georg.Baum@post.rwth-aachen.de>
* insetgraphics.C (latex): Remove line continuation '%\n' (bug xxx, * insetgraphics.C (latex): Remove line continuation '%\n' (bug xxx,

View File

@ -422,15 +422,19 @@ void InsetLatexAccent::draw(PainterInfo & pi, int x, int baseline) const
drawAccent(pi, x2, baseline, '~'); drawAccent(pi, x2, baseline, '~');
break; break;
case UNDERBAR: // underbar 0x5F case UNDERBAR: {
pi.pain.text(x2 - font_metrics::center(0x5F, font), baseline, char const underbar(0x5F);
char(0x5F), font); pi.pain.text(x2 - font_metrics::center(underbar, font),
baseline, underbar, font);
break; break;
}
case CEDILLA: case CEDILLA: {
pi.pain.text(x2 - font_metrics::center(0xB8, font), baseline, char const cedilla(0xB8);
char(0xB8), font); pi.pain.text(x2 - font_metrics::center(cedilla, font),
baseline, cedilla, font);
break; break;
}
case UNDERDOT: case UNDERDOT:
pi.pain.text(x2 - font_metrics::center('.', font), pi.pain.text(x2 - font_metrics::center('.', font),