From: David Elliott Date: Fri, 10 Aug 2007 20:03:05 +0000 (+0000) Subject: Return something halfway reasonable from GetCharWidth/GetCharHeight because the gener... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/d89e391b21af964278f2ff55a28c58ddb1aba419 Return something halfway reasonable from GetCharWidth/GetCharHeight because the generic log dialog divides by GetCharWidth which doesn't work so well when it's zero. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48014 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/cocoa/window.mm b/src/cocoa/window.mm index 2e3e230739..24b9d1c64c 100644 --- a/src/cocoa/window.mm +++ b/src/cocoa/window.mm @@ -1140,13 +1140,13 @@ wxString wxWindow::GetLabel() const int wxWindow::GetCharHeight() const { // TODO - return 0; + return 10; } int wxWindow::GetCharWidth() const { // TODO - return 0; + return 5; } void wxWindow::GetTextExtent(const wxString& string, int *x, int *y,