]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/datavcmn.cpp
Improve wxCheckListBox appearance under Vista/Win7.
[wxWidgets.git] / 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
                                     );
     }