]> git.saurik.com Git - wxWidgets.git/commit
Fix wxFont::GetFaceName() for not realized yet fonts in wxMSW.
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 16 Sep 2011 22:44:04 +0000 (22:44 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 16 Sep 2011 22:44:04 +0000 (22:44 +0000)
commit792339b9639e9b42ce9c3af13244ab6b0f282ba1
treefa30d9f20aeb6d3db1af8b1ecf4a6e4817c168d7
parente9321277925fc8eb439dd713fc7015cc873f0c38
Fix wxFont::GetFaceName() for not realized yet fonts in wxMSW.

GetFaceName() could be called for a font that hadn't been really used yet and
hence its wxFontRefData::m_hFont could be 0 and couldn't be used in
GetMSWFaceName().

Fix this by using GetHFONT() accessor instead of m_hFont directly to create
the font if necessary.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69106 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/msw/font.cpp