Program: 66296
Project: 66296
Buggy source:
private void showChart(Dimension dSize){
  Bounds bo=BoundsImpl.create(0,0,dSize.width,dSize.height);
  bo.scale(72d / idr.getDisplayServer().getDpiResolution());
  idr.setProperty(IDeviceRenderer.GRAPHICS_CONTEXT,gc);
  Generator gr=Generator.instance();
  if (Display.getCurrent().getHighContrast()) {
    Color color=Display.getDefault().getSystemColor(SWT.COLOR_LIST_BACKGROUND);
    ColorDefinition cd=ColorDefinitionImpl.create(color.getRed(),color.getGreen(),color.getBlue());
    gr.setDefaultBackground(cd);
  }
  ChartAdapter.beginIgnoreNotifications();
  cm.clearSections(IConstants.RUN_TIME);
  cm.createSampleRuntimeSeries();
  ChartAdapter.endIgnoreNotifications();
  try {
    Chart cmRunTime=cm.copyInstance();
    ChartReportItemUIFactory.instance().createUIHelper().updateDefaultTitle(cmRunTime,crii.getHandle());
    removeScaleInfoForSample(cmRunTime);
    RunTimeContext rtc=new RunTimeContext();
    rtc.setScriptingEnabled(false);
    rtc.setMessageLookup(new BIRTDesignerMessageLookup(crii.getHandle()));
    rtc.setRightToLeft(crii.isLayoutDirectionRTL());
    rtc.setRightToLeftText(crii.getHandle().isDirectionRTL());
    rtc.setResourceFinder(crii);
    rtc.setExternalizer(crii);
    boolean bPlotChart=ChartCubeUtil.isPlotChart(crii.getHandle());
    if (bPlotChart) {
      rtc.setSharedScale(createSharedScaleFromSampleData());
    }
    ChartReportStyleProcessor crsp=new ChartReportStyleProcessor(crii.getHandle(),true){
      @Override public boolean updateChart(      Chart model,      Object obj){
        if (styleProcessorProxy != null) {
          styleProcessorProxy.updateChart(model,true);
          return true;
        }
        return false;
      }
    }
;
    gr.render(idr,gr.build(idr.getDisplayServer(),cmRunTime,bo,null,rtc,crsp));
  }
 catch (  ChartException gex) {
    showException(gc,gex);
  }
}

Fixed version (ground truth):
private void showChart(Dimension dSize){
  Bounds bo=BoundsImpl.create(0,0,dSize.width,dSize.height);
  bo.scale(72d / idr.getDisplayServer().getDpiResolution());
  idr.setProperty(IDeviceRenderer.GRAPHICS_CONTEXT,gc);
  Generator gr=Generator.instance();
  if (Display.getCurrent().getHighContrast()) {
    Color color=Display.getDefault().getSystemColor(SWT.COLOR_LIST_BACKGROUND);
    ColorDefinition cd=ColorDefinitionImpl.create(color.getRed(),color.getGreen(),color.getBlue());
    gr.setDefaultBackground(cd);
  }
  ChartAdapter.beginIgnoreNotifications();
  cm.clearSections(IConstants.RUN_TIME);
  cm.createSampleRuntimeSeries();
  ChartAdapter.endIgnoreNotifications();
  try {
    Chart cmRunTime=cm.copyInstance();
    ChartReportItemUIFactory.instance().createUIHelper().updateDefaultTitle(cmRunTime,crii.getHandle());
    removeScaleInfoForSample(cmRunTime);
    RunTimeContext rtc=new RunTimeContext();
    rtc.setScriptingEnabled(false);
    rtc.setMessageLookup(new BIRTDesignerMessageLookup(crii.getHandle()));
    rtc.setRightToLeft(crii.isLayoutDirectionRTL());
    rtc.setRightToLeftText(crii.getHandle().isDirectionRTL());
    rtc.setResourceFinder(crii);
    rtc.setExternalizer(crii);
    boolean bPlotChart=ChartCubeUtil.isPlotChart(crii.getHandle());
    if (bPlotChart) {
      rtc.setSharedScale(createSharedScaleFromSampleData());
    }
    ChartReportStyleProcessor crsp=new ChartReportStyleProcessor(crii.getHandle(),true){
      @Override public boolean updateChart(      Chart model,      Object obj){
        if (styleProcessorProxy != null) {
          styleProcessorProxy.updateChart(model,true);
          return true;
        }
        return false;
      }
      public boolean needInheritingStyles(){
        return true;
      }
    }
;
    gr.render(idr,gr.build(idr.getDisplayServer(),cmRunTime,bo,null,rtc,crsp));
  }
 catch (  ChartException gex) {
    showException(gc,gex);
  }
}