From 40503c983585904871fbe836372dc36334c451af Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Thu, 26 Oct 2006 07:44:07 +0000 Subject: [PATCH] adopt new set font API git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42434 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/font.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mac/carbon/font.cpp b/src/mac/carbon/font.cpp index 75ea3f918a..0a0f8a4322 100644 --- a/src/mac/carbon/font.cpp +++ b/src/mac/carbon/font.cpp @@ -533,7 +533,7 @@ 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); -- 2.47.2