Warning fix for assignment of unused value.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28209 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -4890,12 +4890,11 @@ void wxGetCharSize(WXHWND wnd, int *x, int *y, const wxFont& the_font)
|
||||
{
|
||||
TEXTMETRIC tm;
|
||||
HDC dc = ::GetDC((HWND) wnd);
|
||||
HFONT fnt =0;
|
||||
HFONT was = 0;
|
||||
|
||||
// the_font.UseResource();
|
||||
// the_font.RealizeResource();
|
||||
fnt = (HFONT)the_font.GetResourceHandle(); // const_cast
|
||||
HFONT fnt = (HFONT)the_font.GetResourceHandle(); // const_cast
|
||||
if ( fnt )
|
||||
was = (HFONT) SelectObject(dc,fnt);
|
||||
|
||||
|
Reference in New Issue
Block a user