From: Stefan Csomor <csomor@advancedconcepts.ch>
Date: Fri, 30 Nov 2007 09:17:55 +0000 (+0000)
Subject: fixing bug 1841377
X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/6af984df34c71bc14648a7b5bf1ad3c3cd07fc05

fixing bug 1841377

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50339 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
---

diff --git a/src/mac/carbon/toolbar.cpp b/src/mac/carbon/toolbar.cpp
index 175ccb4872..168d343213 100644
--- a/src/mac/carbon/toolbar.cpp
+++ b/src/mac/carbon/toolbar.cpp
@@ -108,9 +108,8 @@ public:
                 DisposeControl( m_controlHandle );
             else
             {
-                // the embedded control is not under the responsibility of the tool, it will be disposed of in the
+                // the embedded control is not under the responsibility of the tool, it gets disposed of in the
                 // proper wxControl destructor
-                wxASSERT( IsValidControlHandle(GetControl()->GetPeer()->GetControlRef() )) ;
             }
             m_controlHandle = NULL ;
         }