Fix test for __WXGTK__ in wxCairoContext.

It must be tested with #ifdef, not #if.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72626 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2012-10-07 22:37:24 +00:00
parent 47c82b4b9c
commit 4c6fdc3503

View File

@ -2186,7 +2186,7 @@ void wxCairoContext::GetPartialTextExtents(const wxString& text, wxArrayDouble&
{
widths.Empty();
wxCHECK_RET( !m_font.IsNull(), wxT("wxCairoContext::GetPartialTextExtents - no valid font set") );
#if __WXGTK__
#ifdef __WXGTK__
const wxCharBuffer data = text.utf8_str();
int w = 0;
if (data.length())