]> git.saurik.com Git - wxWidgets.git/commitdiff
build fix
authorPaul Cornett <paulcor@bullseye.com>
Sat, 5 May 2007 18:45:11 +0000 (18:45 +0000)
committerPaul Cornett <paulcor@bullseye.com>
Sat, 5 May 2007 18:45:11 +0000 (18:45 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45840 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/ownerdrw.cpp

index f527ed834ba1de0ef2570691df32102bdd2a3f5a..12f6d210bced38b39111b39e8160b9c3316b7923 100644 (file)
@@ -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