]> git.saurik.com Git - wxWidgets.git/commitdiff
fixing redraw debugging
authorStefan Csomor <csomor@advancedconcepts.ch>
Tue, 7 Dec 2010 15:41:33 +0000 (15:41 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Tue, 7 Dec 2010 15:41:33 +0000 (15:41 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66359 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/cocoa/window.mm

index d5865bfdc491be2a710abed0e31f2f3bae991eb1..4e0e77f95bdbbcfd9a4915c9c7bdf581c7727335 100644 (file)
@@ -1146,7 +1146,7 @@ void wxWidgetCocoaImpl::drawRect(void* rect, WXWidget slf, void *WXUNUSED(_cmd))
 #if OSX_DEBUG_DRAWING
     CGContextBeginPath( context );
     CGContextMoveToPoint(context, 0, 0);
-    NSRect bounds = [self bounds];
+    NSRect bounds = [slf bounds];
     CGContextAddLineToPoint(context, 10, 0);
     CGContextMoveToPoint(context, 0, 0);
     CGContextAddLineToPoint(context, 0, 10);