]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/editlbox.cpp
Implement icon text column using native GTK renderers in wxDVC.
[wxWidgets.git] / src / generic / editlbox.cpp
index 1e0dc8e73827dab1dcefeabcf454ed465381ce40..f0dc3af9b47bf50c32342cea6e6adfc4b8e3ab38 100644 (file)
@@ -160,7 +160,7 @@ public:
 
     void CreateColumns()
     {
-        InsertColumn(0, _T("item"));
+        InsertColumn(0, wxT("item"));
         SizeColumns();
     }
 
@@ -172,6 +172,7 @@ public:
 #else
          w -= 2*wxSystemSettings::GetMetric(wxSYS_VSCROLL_X);
 #endif
+         if (w < 0) w = 0;
          SetColumnWidth(0, w);
     }