]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/generic/treectlg.h
changing to wxDC, so that wxGCDC can be used as well
[wxWidgets.git] / include / wx / generic / treectlg.h
index 67d13c69db55257d9e54bb8d6271ea170c633193..f57802cf70ac0a97fc3ae0c3612bc0ee30893285 100644 (file)
@@ -112,7 +112,13 @@ public:
     // ----------
 
     virtual wxTreeItemId GetRootItem() const { return m_anchor; }
-    virtual wxTreeItemId GetSelection() const { return m_current; }
+    virtual wxTreeItemId GetSelection() const
+    {
+        wxASSERT_MSG( !HasFlag(wxTR_MULTIPLE),
+                       wxT("must use GetSelections() with this control") );
+
+        return m_current;
+    }
     virtual size_t GetSelections(wxArrayTreeItemIds&) const;
 
     virtual wxTreeItemId GetItemParent(const wxTreeItemId& item) const;