]> git.saurik.com Git - wxWidgets.git/commit - src/common/textmeasurecmn.cpp
Fix crash in wxDC::GetMultiLineTextExtent() after last commit.
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 17 Oct 2012 23:06:07 +0000 (23:06 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 17 Oct 2012 23:06:07 +0000 (23:06 +0000)
commitbb996f289574defb0ae4339ae8e46ff3cf6fa54c
tree2945c777deb1f26b14f862b700931ce7322094e1
parent8cd79b7af0760eb91d42ff9ac7c0ccead8d50c6b
Fix crash in wxDC::GetMultiLineTextExtent() after last commit.

Don't call wxTextMeasure::DoGetTextExtent() with NULL width pointer, it now
supposes that both width and height pointers are non-NULL.

Add at least a trivial unit test for GetMultiLineTextExtent().

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72700 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/common/textmeasurecmn.cpp
tests/graphics/measuring.cpp