]> git.saurik.com Git - wxWidgets.git/commitdiff
Add wxUSE_TREELISTCTRL checks to treelist.cpp itself.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 17 Sep 2011 11:06:05 +0000 (11:06 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 17 Sep 2011 11:06:05 +0000 (11:06 +0000)
The contents of this file was still compiled even when wxUSE_TREELISTCTRL was
turned off. Fix this by adding the missing "#if wxUSE_TREELISTCTRL" check
around it.

Closes #13470.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69111 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/treelist.cpp

index cad5cca2e35c98a0af4799f15ad729a8d754dc1e..806ae748bae7359a2580997b0f3613989632ac73 100644 (file)
@@ -23,6 +23,8 @@
     #pragma hdrstop
 #endif
 
+#if wxUSE_TREELISTCTRL
+
 #ifndef WX_PRECOMP
     #include "wx/dc.h"
 #endif // WX_PRECOMP
@@ -1563,3 +1565,5 @@ wxDEFINE_TREELIST_EVENT(ITEM_ACTIVATED);
 wxDEFINE_TREELIST_EVENT(ITEM_CONTEXT_MENU);
 
 #undef wxDEFINE_TREELIST_EVENT
+
+#endif // wxUSE_TREELISTCTRL