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:
Włodzimierz Skiba
2004-07-12 14:49:37 +00:00
parent e123fe41ac
commit c57c2993ec

View File

@@ -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);