[Commits] (davids) colheader - fixed compilation problem in prior check-in (d'oh!)

commits at osafoundation.org commits at osafoundation.org
Sat Apr 9 21:22:55 PDT 2005


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

Log message:

colheader - fixed compilation problem in prior check-in (d'oh!)
r=TBD



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

Index: internal/wxPython-2.5/src/generic/colheader.cpp
diff -u internal/wxPython-2.5/src/generic/colheader.cpp:1.57 internal/wxPython-2.5/src/generic/colheader.cpp:1.58
--- internal/wxPython-2.5/src/generic/colheader.cpp:1.57	Sat Apr  9 11:52:43 2005
+++ internal/wxPython-2.5/src/generic/colheader.cpp	Sat Apr  9 21:22:53 2005
@@ -43,6 +43,7 @@
 	#include "wx/dcclient.h"
 	#include "wx/bitmap.h"
 	#include "wx/gdicmn.h"
+	#include "wx/colour.h"
 #endif
 
 #if defined(__WXMAC__)
@@ -287,6 +288,7 @@
 			m_ItemList[i]->SetFlagAttribute( wxCOLUMNHEADER_FLAGATTR_Enabled, bEnable );
 
 #if defined(__WXMSW__)
+		// FIXME: possibly replace with simpler Win32ItemRefresh( i ) call
 	bool		bSelected, bSortEnabled, bSortAscending;
 
 		bSelected = false;
@@ -801,6 +803,7 @@
 				m_ItemList[i]->SetFlagAttribute( wxCOLUMNHEADER_FLAGATTR_Selected, bSelected );
 
 #if defined(__WXMSW__)
+		// FIXME: possibly replace with simpler Win32ItemRefresh( i ) call
 		bool		bSortEnabled, bSortAscending;
 
 			bSortEnabled = false;
@@ -1322,7 +1325,7 @@
 		{
 		wxClientDC		dc( this );
 
-			wxColumnHeaderItem::GenericDrawSelection( &dc, &boundsR, m_SelectionColour, m_SelectionDrawStyle );
+			wxColumnHeaderItem::GenericDrawSelection( &dc, &boundsR, &m_SelectionColour, m_SelectionDrawStyle );
 		}
 
 #else
@@ -1344,7 +1347,7 @@
 			// generic case - add selection indicator
 			resultV |= m_ItemList[i]->GenericDrawItem( this, &dc, &boundsR, m_BUseUnicode, m_BVisibleSelection );
 			if (m_BVisibleSelection && (i == m_ItemSelected))
-				wxColumnHeaderItem::GenericDrawSelection( &dc, &boundsR, m_SelectionColour, m_SelectionDrawStyle );
+				wxColumnHeaderItem::GenericDrawSelection( &dc, &boundsR, &m_SelectionColour, m_SelectionDrawStyle );
 #endif
 		}
 



More information about the Commits mailing list