Restore generic GetPartialTextExtents() version use in wxGTK and wxMSW.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 25 Nov 2012 23:17:33 +0000 (23:17 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 25 Nov 2012 23:17:33 +0000 (23:17 +0000)
commit1cd86ff66828c91e4b3bc1296e1bcb67fae587c2
treedffa6a8f36dd8d5f5e99c34a95f58c8bd82566c5
parentd76774b44459b180cdc0986865f483cbd1b7ab00
Restore generic GetPartialTextExtents() version use in wxGTK and wxMSW.

Non-wxWindowDC-derived wxDC classes in wxGTK, such as wxGtkPrinterDCImpl, have
to fall back on the generic implementation of GetPartialTextExtents() as Pango
version can't be used with them.

This fixes a crash due to using NULL Pango layout when printing wxRichTextCtrl
in wxGTK.

Closes #14847.

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