From: Vadim Zeitlin Date: Sat, 19 Dec 2009 11:17:25 +0000 (+0000) Subject: Use correct width in wxDataViewCustomRendererBase::RenderText(). X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/c3fe02e9527b78b708f8fb12e9c9f10d14a78927 Use correct width in wxDataViewCustomRendererBase::RenderText(). The text should be ellipsized to fit in the text rectangle, not the total cell one (which is larger). See #11558. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62939 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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 ); }