]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/carbon/menu.cpp
disable code because of OS bug, fixes #12478, fixes #12554
[wxWidgets.git] / src / osx / carbon / menu.cpp
index 3b258bba5cab7ff9768c30f35011f6fbe9d6378b..ab442f635f1942347dc73a00fa1cb2ca7791c8a1 100644 (file)
@@ -151,7 +151,7 @@ public :
     {
         m_parentMenuRef = parentMenuRef;
         if ( m_parentMenuRef && index > 0 )
     {
         m_parentMenuRef = parentMenuRef;
         if ( m_parentMenuRef && index > 0 )
-            SetMenuItemRefCon( m_parentMenuRef, index, (URefCon) this );
+            SetMenuItemRefCon( m_parentMenuRef, index, (URefCon) m_peer );
     }
 
     MenuItemIndex FindMenuItemIndex()
     }
 
     MenuItemIndex FindMenuItemIndex()
@@ -163,7 +163,7 @@ public :
             {
                 URefCon storedRef = 0;
                 GetMenuItemRefCon(m_parentMenuRef, i, &storedRef );
             {
                 URefCon storedRef = 0;
                 GetMenuItemRefCon(m_parentMenuRef, i, &storedRef );
-                if ( storedRef == (URefCon) this )
+                if ( storedRef == (URefCon) m_peer )
                 {
                     hit = i;
                     break;
                 {
                     hit = i;
                     break;