]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/treectlg.cpp
compilation fix: wxColour::GetColor() returns const object
[wxWidgets.git] / src / generic / treectlg.cpp
index cd500b62a375864b940d1b336ba49e071093646c..cebbbae8727500dea69c7db93ad85bed91b4fe3b 100644 (file)
@@ -2148,7 +2148,7 @@ void wxGenericTreeCtrl::PaintItem(wxGenericTreeItem *item, wxDC& dc)
     else if (item->IsBold())
         dc.SetFont(m_boldFont);
 
-    long text_w = 0, text_h = 0;
+    wxCoord text_w = 0, text_h = 0;
     dc.GetTextExtent( item->GetText(), &text_w, &text_h );
 
     int image_h = 0, image_w = 0;