- const int y = s->get_v_offset() - v_offset;
- const bool highlight = !dragging && s->pt_in_label_rect(
- y, 0, w, _mouse_point);
- s->paint_label(painter, y, w, highlight);
+ const bool highlight = !dragging && t->pt_in_label_rect(
+ 0, w, _mouse_point);
+ t->paint_label(painter, w, highlight);