From d7f3f96cac060035f3e6ce5d30e7726c87a53def Mon Sep 17 00:00:00 2001 From: donovan6000 Date: Sun, 24 Mar 2019 23:32:55 -0700 Subject: [PATCH] Fixes displaying disabled wxDataViewItem with native appearance Causes the wxCONTROL_DISABLED flag to be set based on the results of the wxDataViewModel's IsEnabled() method. --- src/common/datavcmn.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/datavcmn.cpp b/src/common/datavcmn.cpp index 889cc26adc..59bd6532f8 100644 --- a/src/common/datavcmn.cpp +++ b/src/common/datavcmn.cpp @@ -1067,7 +1067,7 @@ wxDataViewCustomRendererBase::RenderText(const wxString& text, int flags = 0; if ( state & wxDATAVIEW_CELL_SELECTED ) flags |= wxCONTROL_SELECTED; - if ( !GetOwner()->GetOwner()->IsEnabled() ) + if ( !GetEnabled() ) flags |= wxCONTROL_DISABLED; // Notice that we intentionally don't use any alignment here: it is not