]> git.saurik.com Git - wxWidgets.git/commitdiff
Use correct width in wxDataViewCustomRendererBase::RenderText().
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 19 Dec 2009 11:17:25 +0000 (11:17 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 19 Dec 2009 11:17:25 +0000 (11:17 +0000)
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

index 38abe9c159bd1fe0f8020b9441e92f43fef07018..99449244bb5bdc2f3c89e9c8f465a8c3a7fc0c87 100644 (file)
@@ -792,7 +792,7 @@ wxDataViewCustomRendererBase::RenderText(const wxString& text,
                                         text,
                                         *dc,
                                         GetEllipsizeMode(),
-                                        rect.width,
+                                        rectText.width,
                                         wxELLIPSIZE_FLAGS_NONE
                                     );
     }