fix for gcc 3.3 warnings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20864 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
b6de9890a4
commit
b52e49f51c
@ -2286,13 +2286,15 @@ void wxPostScriptDC::DoGetTextExtent(const wxString& string,
|
||||
/ the correct way would be to map the character names
|
||||
/ like 'adieresis' to corresp. positions of ISOEnc and read
|
||||
/ these values from AFM files, too. Maybe later ... */
|
||||
lastWidths[196] = lastWidths['A']; // Ä
|
||||
lastWidths[228] = lastWidths['a']; // ä
|
||||
lastWidths[214] = lastWidths['O']; // Ö
|
||||
lastWidths[246] = lastWidths['o']; // ö
|
||||
lastWidths[220] = lastWidths['U']; // Ü
|
||||
lastWidths[252] = lastWidths['u']; // ü
|
||||
lastWidths[223] = lastWidths[251]; // ß
|
||||
|
||||
// NB: casts to int are needed to suppress gcc 3.3 warnings
|
||||
lastWidths[196] = lastWidths[(int)'A']; // Ä
|
||||
lastWidths[228] = lastWidths[(int)'a']; // ä
|
||||
lastWidths[214] = lastWidths[(int)'O']; // Ö
|
||||
lastWidths[246] = lastWidths[(int)'o']; // ö
|
||||
lastWidths[220] = lastWidths[(int)'U']; // Ü
|
||||
lastWidths[252] = lastWidths[(int)'u']; // ü
|
||||
lastWidths[223] = lastWidths[(int)251]; // ß
|
||||
|
||||
/* JC: calculate UnderlineThickness/UnderlinePosition */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user