]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/treectrl.cpp
just deleted one empty line (testing CVS server)
[wxWidgets.git] / src / msw / treectrl.cpp
index f1cfce1fd9ecb912ea83b5aeb8a0619fff8d4d05..aebe08ac3959d08b6d478bd7a7dd10abcd8f2bf9 100644 (file)
@@ -315,7 +315,7 @@ bool wxTreeCtrl::Create(wxWindow *parent,
     if ( m_windowStyle & wxTR_LINES_AT_ROOT )
         wstyle |= TVS_LINESATROOT;
 
-#if !defined( __GNUWIN32__ ) && !defined( __BORLANDC__ ) && !defined(wxUSE_NORLANDER_HEADERS)
+#if !defined( __GNUWIN32__ ) && !defined( __BORLANDC__ ) && !defined( __WATCOMC__ ) && !defined(wxUSE_NORLANDER_HEADERS)
     // we emulate the multiple selection tree controls by using checkboxes: set
     // up the image list we need for this if we do have multiple selections
 #if !defined(__VISUALC__) || (__VISUALC__ > 1010)
@@ -1409,6 +1409,8 @@ bool wxTreeCtrl::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result)
 
                 event.m_item = (WXHTREEITEM)info->item.hItem;
                 event.m_label = info->item.pszText;
+                if (info->item.pszText == NULL)
+                    return FALSE;
                 break;
             }