message: Fix painter clipping when resizing tree-branch column quite small
diff: @@ -263,11 +263,14 @@ void RDTreeView::drawRow(QPainter *painter, const QStyleOptionViewItem &options,
  for(int i = 0, count = model()->columnCount(); i < count; i++)
  {
  QRect r = visualRect(model()->index(index.row(), i, index.parent()));
  +
  + if(r.width() <= 0)
  + r.moveLeft(r.left() + r.width());
  + if(r.height() <= 0)
  + r.moveTop(r.top() + r.height());
  +
  r = r.intersected(intersectrect);
  - // draw bottom and right of the rect
  - if(r.width() > 0 && r.height() > 0)
  - {
  if(treePosition() == i)
  {
  int depth = 1;
  @@ -280,10 +283,10 @@ void RDTreeView::drawRow(QPainter *painter, const QStyleOptionViewItem &options,
  r.setLeft(r.left() - indentation() * depth);
  }
  + // draw bottom and right of the rect
  painter->drawLine(r.bottomLeft(), r.bottomRight());
  painter->drawLine(r.topRight(), r.bottomRight());
  }
  - }
  painter->setPen(p);
  }
  @@ -331,7 +334,7 @@ void RDTreeView::drawBranches(QPainter *painter, const QRect &rect, const QModel
  else
  {
  // draw only the expand item, not the branches
  - QRect primitive(0, rect.top(), indentation(), rect.height());
  + QRect primitive(0, rect.top(), qMin(rect.width(), indentation()), rect.height());
  // if root isn't decorated, skip
  if(!rootIsDecorated() && !index.parent().isValid())
  