[Commits] (davids) colheader - minor tweak for wx coding guidelines conformance

commits at osafoundation.org commits at osafoundation.org
Sat Apr 9 00:30:34 PDT 2005


Commit by: davids
Modified files:
internal/wxPython-2.5/src/generic/colheader.cpp 1.54 1.55

Log message:

colheader - minor tweak for wx coding guidelines conformance
r=TBD



ViewCVS links:
http://cvs.osafoundation.org/index.cgi/internal/wxPython-2.5/src/generic/colheader.cpp.diff?r1=text&tr1=1.54&r2=text&tr2=1.55

Index: internal/wxPython-2.5/src/generic/colheader.cpp
diff -u internal/wxPython-2.5/src/generic/colheader.cpp:1.54 internal/wxPython-2.5/src/generic/colheader.cpp:1.55
--- internal/wxPython-2.5/src/generic/colheader.cpp:1.54	Fri Apr  8 20:59:54 2005
+++ internal/wxPython-2.5/src/generic/colheader.cpp	Sat Apr  9 00:30:32 2005
@@ -1314,7 +1314,7 @@
 	for (long i=0; i<m_ItemCount; i++)
 		if (GetItemBounds( i, &boundsR ))
 		{
-		wxDCClipper		boundsClip( dc, boundsR );
+			dc.SetClippingRegion( boundsR.x, boundsR.y, boundsR.width, boundsR.height );
 
 #if defined(__WXMAC__)
 			// Mac case - selection indicator is drawn as needed
@@ -1327,6 +1327,8 @@
 				wxColumnHeaderItem::GenericDrawSelection( &dc, &boundsR, m_SelectionDrawStyle );
 #endif
 		}
+
+	dc.DestroyClippingRegion();
 #endif
 
 	return resultV;



More information about the Commits mailing list