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
This commit is contained in:
Vadim Zeitlin 2009-12-19 11:17:25 +00:00
parent 3020453f5a
commit c3fe02e952

View File

@ -792,7 +792,7 @@ wxDataViewCustomRendererBase::RenderText(const wxString& text,
text, text,
*dc, *dc,
GetEllipsizeMode(), GetEllipsizeMode(),
rect.width, rectText.width,
wxELLIPSIZE_FLAGS_NONE wxELLIPSIZE_FLAGS_NONE
); );
} }