diff --git a/src/common/datavcmn.cpp b/src/common/datavcmn.cpp index 38abe9c159..99449244bb 100644 --- a/src/common/datavcmn.cpp +++ b/src/common/datavcmn.cpp @@ -792,7 +792,7 @@ wxDataViewCustomRendererBase::RenderText(const wxString& text, text, *dc, GetEllipsizeMode(), - rect.width, + rectText.width, wxELLIPSIZE_FLAGS_NONE ); }