<BUG>if (!(gc instanceof SelectionGraphics) && type != TYPE.ATTRIBUTES)selectEdgesAbove();</BUG><CONTEXT>select(rect, sgc.getSelectionRectangle(), sgc.getMouseClicks());} elsedoPaint(gc, rect);}private void doPaint(Graphics2D gc, Rectangle rect) {<extra_id_0>if (previousRectangle == null || !rect.equals(previousRectangle)) {previousRectangle = rect;fitToRectangle(treeView, rect);</CONTEXT>
if (!(gc instanceof SelectionGraphics))selectEdgesAbove();