]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/gauge.cpp
Don't call base class version unnecessarily in wxLogWindow::DoLogTextAtLevel().
[wxWidgets.git] / src / msw / gauge.cpp
index 9a26e9b592d7e183d9ffa2c56029d57cce788b6a..1045bffc6159173e493d9186b9d825fe9b06dbbc 100644 (file)
@@ -206,6 +206,10 @@ void wxGauge::SetRange(int r)
 
 void wxGauge::SetValue(int pos)
 {
+    // Setting the (same) position produces flicker on Vista,
+    // especially noticable if ownerdrawn
+    if (GetValue() == pos) return;
+
     // switch to determinate mode if required
     SetDeterminateMode();