]> git.saurik.com Git - wxWidgets.git/commitdiff
reverting r57083 for OSX, fixes #11922
authorStefan Csomor <csomor@advancedconcepts.ch>
Fri, 9 Apr 2010 08:10:31 +0000 (08:10 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Fri, 9 Apr 2010 08:10:31 +0000 (08:10 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63921 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/image/image.cpp

index 0fac64b19e91085aa29c7a611fa4ca06969b8bc6..9a99f1487f0afb7ca6adfe129535f992ef7ca1d5 100644 (file)
@@ -185,8 +185,11 @@ private:
     {
         wxPaintDC dc(this);
 
+#ifndef __WXOSX__
+        // on OSX the immediate Update from within ClearBackground leads to a recursion
         if ( GetMenuBar()->IsChecked(ID_PAINT_BG) )
             ClearBackground();
+#endif
 
         dc.SetUserScale(m_zoom, m_zoom);