X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/065e208ec09e3d08d51d9604497f92f53c210f93..5e06d749ed2e8fe82bf058e66695cd4a96e450da:/src/cocoa/textctrl.mm diff --git a/src/cocoa/textctrl.mm b/src/cocoa/textctrl.mm index 60533978a1..ded17b2b1a 100644 --- a/src/cocoa/textctrl.mm +++ b/src/cocoa/textctrl.mm @@ -6,7 +6,7 @@ // Created: 2003/03/16 // RCS-ID: $Id: // Copyright: (c) 2003 David Elliott -// Licence: wxWidgets licence +// Licence: wxWidgets licence ///////////////////////////////////////////////////////////////////////////// #include "wx/wxprec.h" @@ -177,7 +177,7 @@ int wxTextCtrl::GetLineLength(long) const return 0; } -long wxTextCtrl::GetLastPosition() const +wxTextPos wxTextCtrl::GetLastPosition() const { return 0; } @@ -215,7 +215,7 @@ wxSize wxTextCtrl::DoGetBestSize() const NSCell *cell = [GetNSControl() cell]; wxASSERT(cell); NSSize cellSize = [cell cellSize]; - wxSize size(100,(int)ceilf(cellSize.height)); + wxSize size(100,(int)ceil(cellSize.height)); wxLogTrace(wxTRACE_COCOA_Window_Size,wxT("wxTextCtrl=%p::DoGetBestSize()==(%d,%d)"),this,size.x,size.y); return size;