]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/treectlg.cpp
applied patch for compilation with gcc 3.0
[wxWidgets.git] / src / generic / treectlg.cpp
index fc8cfafc78aedb67067649c9f651946f9809c16f..468dd926e63766b40c9d975de3b05d6ed6fe3b49 100644 (file)
@@ -1839,7 +1839,7 @@ void wxGenericTreeCtrl::PaintLevel( wxGenericTreeItem *item, wxDC &dc, int level
     int exposed_x = dc.LogicalToDeviceX( 0 );
     int exposed_y = dc.LogicalToDeviceY( item->GetY() );
 
-    bool drawLines = (HasFlag(wxTR_NO_LINES) && !HasFlag(wxTR_MAC_BUTTONS));
+    bool drawLines = (!HasFlag(wxTR_NO_LINES) && !HasFlag(wxTR_MAC_BUTTONS));
 
     if (IsExposed( exposed_x, exposed_y, 10000, GetLineHeight(item) ))  // 10000 = very much
     {