Allow constructing wxGTK wxTextMeasure with NULL font.
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 1 Nov 2012 17:15:15 +0000 (17:15 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 1 Nov 2012 17:15:15 +0000 (17:15 +0000)
commite0da9e871a3184daa1a32bcacbfdf6ddb9ed7db4
tree28ce07bfcbd5218270ad7800a65e31cbd16a51d2
parent18764039ab9c63717297b3132fac826e4c17f063
Allow constructing wxGTK wxTextMeasure with NULL font.

The font is explicitly documented as being possibly NULL in the base class and
wxMSW handles NULL font just fine, so also handle it in the GTK version.

See #14706.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72844 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/gtk/private/textmeasure.h
include/wx/private/textmeasure.h
src/common/textmeasurecmn.cpp
src/gtk/textmeasure.cpp