Fix colored markup drawing in Mac wxDataViewCtrl
50ba73c
accidentally omitted an if (colText) check, causing calls to
setTextColor:nil - which in turn caused markup text (but curiously, not
plain) rendering to stick with a previously set color even on cells
where the default color should be used.
Restoring the original logic to prevent setTextColor:nil fixes it.
This commit is contained in:
@@ -2940,6 +2940,8 @@ void wxDataViewRenderer::SetAttr(const wxDataViewItemAttr& attr)
|
|||||||
{
|
{
|
||||||
if ( !colText )
|
if ( !colText )
|
||||||
colText = data->GetOriginalTextColour();
|
colText = data->GetOriginalTextColour();
|
||||||
|
|
||||||
|
if ( colText )
|
||||||
[(id)cell setTextColor:colText];
|
[(id)cell setTextColor:colText];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user