]> git.saurik.com Git - wxWidgets.git/commitdiff
OW pedantic warning fix.
authorWłodzimierz Skiba <abx@abx.art.pl>
Wed, 13 Apr 2005 17:54:58 +0000 (17:54 +0000)
committerWłodzimierz Skiba <abx@abx.art.pl>
Wed, 13 Apr 2005 17:54:58 +0000 (17:54 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33583 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/radiobox.cpp

index ac037051d8886a3b518767dc06957e889de79c34..c8e8ee0a6b12408cddd8f4d45e2d6af1487c357f 100644 (file)
@@ -681,8 +681,8 @@ wxRadioBox::MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam)
         {
             // no, we don't, erase the background ourselves (don't use our own
             // colour as with static box, see comments there)
-            wxFillRect(GetHwnd(), (HDC)wParam,
-                        GetHbrushOf(wxBrush(GetParent()->GetBackgroundColour())));
+            wxBrush brush(GetParent()->GetBackgroundColour());
+            wxFillRect(GetHwnd(), (HDC)wParam, GetHbrushOf(brush));
         }
 
         return 0;