]> git.saurik.com Git - wxWidgets.git/commitdiff
compilation warning fixed for wxUSE_TOOLTIPS==0
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 26 Nov 2001 11:23:25 +0000 (11:23 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 26 Nov 2001 11:23:25 +0000 (11:23 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12704 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/controls/controls.cpp

index 0b85c4d46e5088c23f0c6ee48c389692b2df9a53..9a12beab818f5c423e083b88d21b1683a0d16d35 100644 (file)
@@ -943,8 +943,8 @@ void MyPanel::OnListBoxButtons( wxCommandEvent &event )
         case ID_LISTBOX_ENABLE:
             {
                 m_text->AppendText("Checkbox clicked.\n");
         case ID_LISTBOX_ENABLE:
             {
                 m_text->AppendText("Checkbox clicked.\n");
-                wxCheckBox *cb = (wxCheckBox*)event.GetEventObject();
 #if wxUSE_TOOLTIPS
 #if wxUSE_TOOLTIPS
+                wxCheckBox *cb = (wxCheckBox*)event.GetEventObject();
                 if (event.GetInt())
                     cb->SetToolTip( "Click to enable listbox" );
                 else
                 if (event.GetInt())
                     cb->SetToolTip( "Click to enable listbox" );
                 else