]> git.saurik.com Git - wxWidgets.git/commitdiff
handle all wxROLE_XXX values in wxConvertToWindowsRole()
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 4 Nov 2006 11:14:57 +0000 (11:14 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 4 Nov 2006 11:14:57 +0000 (11:14 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43019 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/ole/access.cpp

index 9aff3c6c183c5d1b2721b974bb3e2fe689e870f4..b1ddbb9a34fd99441217f2526ac5c4c548160e61 100644 (file)
@@ -1748,6 +1748,8 @@ int wxConvertToWindowsRole(wxAccRole wxrole)
 {
     switch (wxrole)
     {
+    case wxROLE_NONE:
+        return 0;
     case wxROLE_SYSTEM_ALERT:
         return ROLE_SYSTEM_ALERT;
     case wxROLE_SYSTEM_ANIMATION: