]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/tbarbase.cpp
Do not try to expand the root node in SetWindowStyle if the root node hasn't been...
[wxWidgets.git] / src / common / tbarbase.cpp
index b7dfb3c5ba46d8ca3578af9710bfd7ffb8ef1543..a867599140dd084e5c95f323bd0d95a46bb95d3f 100644 (file)
@@ -2,7 +2,7 @@
 // Name:        common/tbarbase.cpp
 // Purpose:     wxToolBarBase implementation
 // Author:      Julian Smart
-// Modified by: VZ at 11.12.99 (wxScrollableToolBar splitted off)
+// Modified by: VZ at 11.12.99 (wxScrollableToolBar split off)
 // Created:     04/01/98
 // RCS-ID:      $Id$
 // Copyright:   (c) Julian Smart
@@ -451,7 +451,7 @@ wxToolBarBase::~wxToolBarBase()
 
     // notify the frame that it doesn't have a tool bar any longer to avoid
     // dangling pointers
-    wxFrameBase *frame = wxDynamicCast(GetParent(), wxFrameBase);
+    wxFrame *frame = wxDynamicCast(GetParent(), wxFrame);
     if ( frame && frame->GetToolBar() == this )
     {
         frame->SetToolBar(NULL);