--- src/manager.cpp	2006-01-10 20:45:53.000000000 +0000
+++ src/manager.cpp	2006-01-06 19:59:31.000000000 +0000
@@ -4008,7 +3738,7 @@
         pane.Hide();
         Update();
     }
-     else if (event.button = wxPaneInfo::buttonPin)
+     else if (event.button == wxPaneInfo::buttonPin)
     {
         if ((m_flags & wxAUI_MGR_ALLOW_FLOATING) &&
             pane.IsFloatable())
