* ListViewItem.cs: When retrieving the focused state, the index check
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ListViewItem.cs
index dab421432fc0b7bdea97cea8f4e13b34c7a5937b..4d576905a528d0715bb0450409b8d0edba46fa96 100644 (file)
@@ -272,7 +272,8 @@ namespace System.Windows.Forms
 
 #if NET_2_0
                                // In virtual mode the checks are always done using indexes
-                               return Index == owner.focused_item_index;
+                               if (owner.VirtualMode)
+                                       return Index == owner.focused_item_index;
 #endif
 
                                // Light check