Don't dereference NULL output pointer in wxTextMeasure.

Check that pointers are non-NULL before assigning 0 to them.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73016 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2012-11-25 23:17:10 +00:00
parent f8115cdc62
commit d76774b444

View File

@ -116,8 +116,11 @@ void wxTextMeasure::DoGetTextExtent(const wxString& string,
{
if ( !m_context )
{
*width =
*height = 0;
if ( width )
*width = 0;
if ( height )
*height = 0;
return;
}