Program: 70124
Project: 70124
Buggy source:
protected IFigure createFigure(){
  Figure figure=new ReportElementFigure(){
    protected void paintBorder(    Graphics graphics){
    }
    protected void paintFigure(    Graphics graphics){
      super.paintFigure(graphics);
      graphics.setForegroundColor(ReportColorConstants.MarginBorderColor);
      graphics.drawRectangle(getBounds().getCopy().crop(getBorder().getInsets(this)).crop(DEFAULT_CROP));
      graphics.setForegroundColor(ReportColorConstants.ReportForeground);
      graphics.drawRectangle(getBounds().getCopy().crop(new Insets(0,0,1,1)));
    }
    protected void paintChildren(    Graphics graphics){
      IFigure child;
      for (int i=0; i < this.getChildren().size(); i++) {
        child=(IFigure)this.getChildren().get(i);
        if (child.isVisible()) {
          graphics.setClip(getBounds().getCopy().intersect(child.getBounds()));
          child.paint(graphics);
          graphics.restoreState();
        }
      }
    }
    protected IFigure findDescendantAtExcluding(    int x,    int y,    TreeSearch search){
      PRIVATE_POINT.setLocation(x,y);
      translateFromParent(PRIVATE_POINT);
      if (!getBounds().contains(PRIVATE_POINT))       return null;
      IFigure fig;
      for (int i=getChildren().size(); i > 0; ) {
        i--;
        fig=(IFigure)getChildren().get(i);
        if (fig.isVisible()) {
          fig=fig.findFigureAt(PRIVATE_POINT.x,PRIVATE_POINT.y,search);
          if (fig != null)           return fig;
        }
      }
      return null;
    }
  }
;
  figure.setOpaque(true);
  MasterPageLayout layout=new MasterPageLayout(this);
  MasterPageHandle masterPageHandle=(MasterPageHandle)getModel();
  Dimension size=getMasterPageSize(masterPageHandle);
  Rectangle bounds=new Rectangle(0,0,size.width - 1,size.height - 1);
  layout.setInitSize(bounds);
  figure.setLayoutManager(layout);
  figure.setBorder(new ReportDesignMarginBorder(getMasterPageInsets((MasterPageHandle)getModel())));
  figure.setBounds(bounds.getCopy());
  return figure;
}

Fixed version (ground truth):
protected IFigure createFigure(){
  Figure figure=new ReportElementFigure(){
    protected void paintFigure(    Graphics graphics){
      graphics.fillRectangle(getBounds());
      super.paintFigure(graphics);
      graphics.setForegroundColor(ReportColorConstants.ReportForeground);
      graphics.drawRectangle(getBounds().getCopy().crop(new Insets(0,0,1,1)));
    }
    protected void paintChildren(    Graphics graphics){
      IFigure child;
      for (int i=0; i < this.getChildren().size(); i++) {
        child=(IFigure)this.getChildren().get(i);
        if (child.isVisible()) {
          graphics.setClip(getBounds().getCopy().intersect(child.getBounds()));
          child.paint(graphics);
          graphics.restoreState();
        }
      }
    }
    protected IFigure findDescendantAtExcluding(    int x,    int y,    TreeSearch search){
      PRIVATE_POINT.setLocation(x,y);
      translateFromParent(PRIVATE_POINT);
      if (!getBounds().contains(PRIVATE_POINT))       return null;
      IFigure fig;
      for (int i=getChildren().size(); i > 0; ) {
        i--;
        fig=(IFigure)getChildren().get(i);
        if (fig.isVisible()) {
          fig=fig.findFigureAt(PRIVATE_POINT.x,PRIVATE_POINT.y,search);
          if (fig != null)           return fig;
        }
      }
      return null;
    }
  }
;
  figure.setOpaque(true);
  MasterPageLayout layout=new MasterPageLayout(this);
  MasterPageHandle masterPageHandle=(MasterPageHandle)getModel();
  Dimension size=getMasterPageSize(masterPageHandle);
  Rectangle bounds=new Rectangle(0,0,size.width - 1,size.height - 1);
  layout.setInitSize(bounds);
  figure.setLayoutManager(layout);
  figure.setBorder(new ReportDesignMarginBorder(getMasterPageInsets((MasterPageHandle)getModel())));
  figure.setBounds(bounds.getCopy());
  return figure;
}