From 36866abca3b49a0fb4fbaddedd1d443cbc978f89 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Sat, 5 May 2007 18:45:11 +0000 Subject: [PATCH] build fix git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45840 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/ownerdrw.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/msw/ownerdrw.cpp b/src/msw/ownerdrw.cpp index f527ed834b..12f6d210bc 100644 --- a/src/msw/ownerdrw.cpp +++ b/src/msw/ownerdrw.cpp @@ -198,7 +198,10 @@ bool wxOwnerDrawn::OnMeasureItem(size_t *pwidth, size_t *pheight) dc.SetFont(GetFontToUse()); - dc.GetTextExtent(str, (long *)pwidth, (long *)pheight); + wxCoord w, h; + dc.GetTextExtent(str, &w, &h); + *pwidth = w; + *pheight = h; // add space at the end of the menu for the submenu expansion arrow // this will also allow offsetting the accel string from the right edge -- 2.45.2