]> git.saurik.com Git - wxWidgets.git/commitdiff
Slightly better wxStockCursor usage
authorJaakko Salli <jaakko.salli@dnainternet.net>
Thu, 25 Sep 2008 16:31:01 +0000 (16:31 +0000)
committerJaakko Salli <jaakko.salli@dnainternet.net>
Thu, 25 Sep 2008 16:31:01 +0000 (16:31 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55875 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/propgrid/advprops.cpp

index 25e94479e028e88b50ca8adf235e33e9e1de2a67..e325cf9e1ece82c02a9e20db4065ce231fa6d107 100644 (file)
@@ -1470,13 +1470,14 @@ void wxCursorProperty::OnCustomPaint( wxDC& dc,
 
         if ( paintdata.m_choiceItem < NUM_CURSORS )
         {
-            int cursorindex = gs_cp_es_syscursors_values[paintdata.m_choiceItem];
+            wxStockCursor cursorIndex =
+                (wxStockCursor) gs_cp_es_syscursors_values[paintdata.m_choiceItem];
 
             {
-                if ( cursorindex == wxCURSOR_NONE )
-                    cursorindex = wxCURSOR_ARROW;
+                if ( cursorIndex == wxCURSOR_NONE )
+                    cursorIndex = wxCURSOR_ARROW;
 
-                wxCursor cursor( (wxStockCursor)cursorindex );
+                wxCursor cursor( cursorIndex );
 
             #ifdef __WXMSW__
                 HDC hDc = (HDC)((const wxMSWDCImpl *)dc.GetImpl())->GetHDC();