]> git.saurik.com Git - wxWidgets.git/blobdiff - src/xrc/xh_tree.cpp
Fix DnD in generic wxDataViewCtrl when scrolled.
[wxWidgets.git] / src / xrc / xh_tree.cpp
index 1591d626a75c43f41eb91c57415cdb5d8cbb4c2a..dc7e178161af6638c0239091284a03bc0f1e8ec8 100644 (file)
@@ -51,10 +51,14 @@ wxObject *wxTreeCtrlXmlHandler::DoCreateResource()
     tree->Create(m_parentAsWindow,
                 GetID(),
                 GetPosition(), GetSize(),
-                GetStyle(_T("style"), wxTR_DEFAULT_STYLE),
+                GetStyle(wxT("style"), wxTR_DEFAULT_STYLE),
                 wxDefaultValidator,
                 GetName());
 
+    wxImageList *imagelist = GetImageList();
+    if ( imagelist )
+        tree->AssignImageList(imagelist);
+
     SetupWindow(tree);
 
     return tree;