]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/listctrl.cpp
set the focus to the tree before generating the selection change events to have a...
[wxWidgets.git] / src / generic / listctrl.cpp
index b316c39ea9b3a34cc5007d14195d60178d3cc121..7e1830b570fd622376510d10ff1a2197a612b0ec 100644 (file)
@@ -1541,11 +1541,7 @@ void wxListLineData::DrawInReportMode( wxDC *dc,
         if (highlighted)
         {
             int flags = wxCONTROL_SELECTED;
-            if (m_owner->HasFocus()
-#ifdef __WXMAC__
-                && IsControlActive( (ControlRef)m_owner->GetHandle() )
-#endif
-            )
+            if (m_owner->HasFocus())
                 flags |= wxCONTROL_FOCUSED;
             wxRendererNative::Get().DrawItemSelectionRect( m_owner, *dc, rectHL, flags );
         }