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:
parent
47c82b4b9c
commit
4c6fdc3503
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user