]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/tbargtk.cpp
make cast from double to long explicit to suppress gcc warning (part of patch 1962992)
[wxWidgets.git] / src / gtk / tbargtk.cpp
index b08e0e641bfd326c766bce0064a1bc2ed6aaf6ff..46cb5b8c977146ce9696b05c3b3e9b443c06f591 100644 (file)
@@ -848,7 +848,7 @@ void wxToolBar::OnInternalIdle()
         }
     }
 
-    if (wxUpdateUIEvent::CanUpdate(this))
+    if (wxUpdateUIEvent::CanUpdate(this) && IsShownOnScreen())
         UpdateWindowUI(wxUPDATE_UI_FROMIDLE);
 }