diff --git a/include/wx/richtext/richtextbuffer.h b/include/wx/richtext/richtextbuffer.h index d7ab14943f..c1ba9cb454 100644 --- a/include/wx/richtext/richtextbuffer.h +++ b/include/wx/richtext/richtextbuffer.h @@ -75,9 +75,9 @@ #define wxTextAttrEx wxTextAttr // Setting wxRICHTEXT_USE_OWN_CARET to 1 implements a -// cursor reliably without using wxClientDC in case there +// caret reliably without using wxClientDC in case there // are platform-specific problems with the generic caret. -#ifdef __WXMAC__ +#if defined(__WXGTK__) || defined(__WXMAC__) #define wxRICHTEXT_USE_OWN_CARET 1 #else #define wxRICHTEXT_USE_OWN_CARET 0