]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/font.cpp
Remove unnecessary restriction for sizer parent
[wxWidgets.git] / src / mac / carbon / font.cpp
index 75ea3f918ada154f72e5fc9e6464d07c7f51e6f3..0650fe78d91e26ebe89d9cfd794391ad6d5f1c43 100644 (file)
@@ -533,10 +533,10 @@ wxSize wxFont::GetPixelSize() const
 #if wxUSE_GRAPHICS_CONTEXT
     // TODO: consider caching the value
     wxGraphicsContext* dc = wxGraphicsContext::CreateFromNative((CGContextRef) NULL);
-    dc->SetFont(*(wxFont *)this);
+    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