X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/40503c983585904871fbe836372dc36334c451af..83e8b44cc0bf8a2a8f162c67162f9ed68accd15f:/src/mac/carbon/font.cpp diff --git a/src/mac/carbon/font.cpp b/src/mac/carbon/font.cpp index 0a0f8a4322..0650fe78d9 100644 --- a/src/mac/carbon/font.cpp +++ b/src/mac/carbon/font.cpp @@ -535,8 +535,8 @@ wxSize wxFont::GetPixelSize() const wxGraphicsContext* dc = wxGraphicsContext::CreateFromNative((CGContextRef) NULL); dc->SetFont(*(wxFont *)this,*wxBLACK); wxDouble width, height = 0; - dc->GetTextExtent( wxT("g"), &width, &height, NULL, NULL); - return wxSize(width, height); + dc->GetTextExtent( wxT("g"), &width, &height, NULL, NULL); + return wxSize((int)width, (int)height); #else wxFontBase::GetPixelSize(); #endif