From c3fe02e9527b78b708f8fb12e9c9f10d14a78927 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 19 Dec 2009 11:17:25 +0000 Subject: [PATCH] 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 --- 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 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 ); }