]> git.saurik.com Git - wxWidgets.git/commit - src/osx/carbon/graphics.cpp
Support using GetTextExtent() with empty string to get descent in wxOSX.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 15 Jul 2013 01:31:56 +0000 (01:31 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 15 Jul 2013 01:31:56 +0000 (01:31 +0000)
commit14619f10b0bdb630206607abd0ce0319d45e095a
treec097e56cf9083bd1cbab537e41542709ead24aa9
parent166988aa358198f2cfaa506d8f653eb8006d0106
Support using GetTextExtent() with empty string to get descent in wxOSX.

Allow measuring the descent and external leading of an empty string by
measuring just a space instead in wxOSX. This makes the behaviour more
consistent with wxMSW and makes the unit test added in r74464 pass under OS X
too.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74524 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/osx/carbon/graphics.cpp