From 951f68d01cabb566f1e3015768622c5e040af07a Mon Sep 17 00:00:00 2001 From: Stefan Neis Date: Sat, 28 Apr 2007 10:04:34 +0000 Subject: [PATCH] Adapted to API changes with respect to GetTextExtent (patch #1709152). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45705 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/os2/dc.h | 2 +- src/os2/dc.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/wx/os2/dc.h b/include/wx/os2/dc.h index 01c4ff4a1c..01d7df0ef1 100644 --- a/include/wx/os2/dc.h +++ b/include/wx/os2/dc.h @@ -129,7 +129,7 @@ public: ,wxCoord* pY ,wxCoord* pDescent = NULL ,wxCoord* pExternalLeading = NULL - ,wxFont* pTheFont = NULL + ,const wxFont* pTheFont = NULL ) const; virtual bool CanDrawBitmap(void) const; virtual bool CanGetTextExtent(void) const; diff --git a/src/os2/dc.cpp b/src/os2/dc.cpp index 11d9169319..d7c5f5139e 100644 --- a/src/os2/dc.cpp +++ b/src/os2/dc.cpp @@ -2151,7 +2151,7 @@ void wxDC::DoGetTextExtent( , wxCoord* pvY , wxCoord* pvDescent , wxCoord* pvExternalLeading -, wxFont* pTheFont +, const wxFont* pTheFont ) const { POINTL avPoint[TXTBOX_COUNT]; -- 2.45.2