fixing 1736298
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@46440 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -684,6 +684,7 @@ wxSize wxFont::GetPixelSize() const
|
||||
dc->SetFont(*(wxFont *)this,*wxBLACK);
|
||||
wxDouble width, height = 0;
|
||||
dc->GetTextExtent( wxT("g"), &width, &height, NULL, NULL);
|
||||
delete dc;
|
||||
return wxSize((int)width, (int)height);
|
||||
#else
|
||||
return wxFontBase::GetPixelSize();
|
||||
|
Reference in New Issue
Block a user