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:
@@ -2186,7 +2186,7 @@ void wxCairoContext::GetPartialTextExtents(const wxString& text, wxArrayDouble&
|
|||||||
{
|
{
|
||||||
widths.Empty();
|
widths.Empty();
|
||||||
wxCHECK_RET( !m_font.IsNull(), wxT("wxCairoContext::GetPartialTextExtents - no valid font set") );
|
wxCHECK_RET( !m_font.IsNull(), wxT("wxCairoContext::GetPartialTextExtents - no valid font set") );
|
||||||
#if __WXGTK__
|
#ifdef __WXGTK__
|
||||||
const wxCharBuffer data = text.utf8_str();
|
const wxCharBuffer data = text.utf8_str();
|
||||||
int w = 0;
|
int w = 0;
|
||||||
if (data.length())
|
if (data.length())
|
||||||
|
Reference in New Issue
Block a user