Program: 78436
Project: 78436
Buggy source:
private void placeComponents(){
  GridLayout glContent=new GridLayout(4,false);
  glContent.marginHeight=2;
  glContent.marginWidth=2;
  this.setLayout(glContent);
  if (isShadowNeeded()) {
    Label lblShadow=new Label(this,SWT.NONE);
    GridData gdLBLShadow=new GridData();
    lblShadow.setLayoutData(gdLBLShadow);
    lblShadow.setText(Messages.getString("String_Node_Str"));
    fccShadow=new FillChooserComposite(this,SWT.NONE,series.eAdapters(),((LineSeries)series).getShadowColor(),false,false);
    GridData gdFCCShadow=new GridData(GridData.FILL_HORIZONTAL);
    gdFCCShadow.widthHint=180;
    fccShadow.setLayoutData(gdFCCShadow);
    fccShadow.addListener(this);
  }
  btnPalette=new Button(this,SWT.CHECK);
{
    btnPalette.setText(Messages.getString("String_Node_Str"));
    btnPalette.setSelection(((LineSeries)series).isPaletteLineColor());
    btnPalette.addSelectionListener(this);
  }
  btnCurve=new Button(this,SWT.CHECK);
{
    btnCurve.setText(Messages.getString("String_Node_Str"));
    btnCurve.setSelection(((LineSeries)series).isCurve());
    btnCurve.addSelectionListener(this);
  }
  if (!(series instanceof AreaSeries)) {
    btnMissingValue=new Button(this,SWT.CHECK);
{
      btnMissingValue.setText(Messages.getString("String_Node_Str"));
      GridData gdBTNMissingValue=new GridData();
      gdBTNMissingValue.horizontalSpan=4;
      btnMissingValue.setLayoutData(gdBTNMissingValue);
      btnMissingValue.setSelection(((LineSeries)series).isConnectMissingValue());
      btnMissingValue.addSelectionListener(this);
    }
  }
  if (!isShadowNeeded()) {
    GridData gd=new GridData();
    gd.horizontalSpan=2;
    gd.horizontalIndent=5;
    btnPalette.setLayoutData(gd);
    gd=new GridData();
    gd.horizontalSpan=2;
    gd.horizontalIndent=5;
    btnCurve.setLayoutData(gd);
  }
  GridLayout glMarker=new GridLayout();
  glMarker.numColumns=2;
  glMarker.marginHeight=4;
  glMarker.marginWidth=4;
  glMarker.verticalSpacing=4;
  glMarker.horizontalSpacing=4;
  grpMarker=new Group(this,SWT.NONE);
  GridData gdGRPMarker=new GridData(GridData.FILL_BOTH);
  gdGRPMarker.horizontalSpan=2;
  grpMarker.setLayoutData(gdGRPMarker);
  grpMarker.setLayout(glMarker);
  grpMarker.setText(Messages.getString("String_Node_Str"));
  btnMarkerVisible=new Button(grpMarker,SWT.CHECK);
  GridData gdBTNVisible=new GridData();
  gdBTNVisible.horizontalSpan=2;
  btnMarkerVisible.setLayoutData(gdBTNVisible);
  btnMarkerVisible.setText(Messages.getString("String_Node_Str"));
  btnMarkerVisible.addSelectionListener(this);
  btnMarkerVisible.setSelection(((LineSeries)series).getMarker().isVisible());
  Label lblType=new Label(grpMarker,SWT.NONE);
  GridData gdLBLType=new GridData();
  lblType.setLayoutData(gdLBLType);
  lblType.setText(Messages.getString("String_Node_Str"));
  cmbMarkerTypes=new Combo(grpMarker,SWT.DROP_DOWN | SWT.READ_ONLY);
  GridData gdCMBMarkerTypes=new GridData(GridData.FILL_HORIZONTAL);
  cmbMarkerTypes.setLayoutData(gdCMBMarkerTypes);
  cmbMarkerTypes.addSelectionListener(this);
  cmbMarkerTypes.setEnabled(btnMarkerVisible.getSelection());
  Label lblSize=new Label(grpMarker,SWT.NONE);
  GridData gdLBLSize=new GridData();
  lblSize.setLayoutData(gdLBLSize);
  lblSize.setText(Messages.getString("String_Node_Str"));
  iscMarkerSize=new IntegerSpinControl(grpMarker,SWT.NONE,((LineSeries)series).getMarker().getSize());
  GridData gdISCMarkerSize=new GridData(GridData.FILL_HORIZONTAL);
  iscMarkerSize.setLayoutData(gdISCMarkerSize);
  iscMarkerSize.setMinimum(0);
  iscMarkerSize.setMaximum(100);
  iscMarkerSize.addListener(this);
  iscMarkerSize.setEnabled(btnMarkerVisible.getSelection());
  grpLine=new Group(this,SWT.NONE);
  GridData gdGRPLine=new GridData(GridData.FILL_BOTH);
  gdGRPLine.horizontalSpan=2;
  grpLine.setLayout(new FillLayout());
  grpLine.setLayoutData(gdGRPLine);
  grpLine.setText(Messages.getString("String_Node_Str"));
  liacLine=new LineAttributesComposite(grpLine,SWT.NONE,((LineSeries)series).getLineAttributes(),true,true,true);
  liacLine.addListener(this);
  enableLineSettings(((LineSeries)series).getLineAttributes().isVisible());
  populateLists();
}

Fixed version (ground truth):
private void placeComponents(){
  GridLayout glContent=new GridLayout(4,false);
  glContent.marginHeight=2;
  glContent.marginWidth=2;
  this.setLayout(glContent);
  if (isShadowNeeded()) {
    Label lblShadow=new Label(this,SWT.NONE);
    GridData gdLBLShadow=new GridData();
    lblShadow.setLayoutData(gdLBLShadow);
    lblShadow.setText(Messages.getString("String_Node_Str"));
    fccShadow=new FillChooserComposite(this,SWT.NONE,series.eAdapters(),((LineSeries)series).getShadowColor(),false,false);
    GridData gdFCCShadow=new GridData(GridData.FILL_HORIZONTAL);
    gdFCCShadow.widthHint=180;
    fccShadow.setLayoutData(gdFCCShadow);
    fccShadow.addListener(this);
  }
  btnPalette=new Button(this,SWT.CHECK);
{
    btnPalette.setText(Messages.getString("String_Node_Str"));
    btnPalette.setSelection(((LineSeries)series).isPaletteLineColor());
    btnPalette.addSelectionListener(this);
  }
  btnCurve=new Button(this,SWT.CHECK);
{
    btnCurve.setText(Messages.getString("String_Node_Str"));
    btnCurve.setSelection(((LineSeries)series).isCurve());
    btnCurve.addSelectionListener(this);
  }
  if (!(series instanceof AreaSeries || series instanceof ScatterSeries)) {
    btnMissingValue=new Button(this,SWT.CHECK);
{
      btnMissingValue.setText(Messages.getString("String_Node_Str"));
      GridData gdBTNMissingValue=new GridData();
      gdBTNMissingValue.horizontalSpan=4;
      btnMissingValue.setLayoutData(gdBTNMissingValue);
      btnMissingValue.setSelection(((LineSeries)series).isConnectMissingValue());
      btnMissingValue.addSelectionListener(this);
    }
  }
  if (!isShadowNeeded()) {
    GridData gd=new GridData();
    gd.horizontalSpan=2;
    gd.horizontalIndent=5;
    btnPalette.setLayoutData(gd);
    gd=new GridData();
    gd.horizontalSpan=2;
    gd.horizontalIndent=5;
    btnCurve.setLayoutData(gd);
  }
  GridLayout glMarker=new GridLayout();
  glMarker.numColumns=2;
  glMarker.marginHeight=4;
  glMarker.marginWidth=4;
  glMarker.verticalSpacing=4;
  glMarker.horizontalSpacing=4;
  grpMarker=new Group(this,SWT.NONE);
  GridData gdGRPMarker=new GridData(GridData.FILL_BOTH);
  gdGRPMarker.horizontalSpan=2;
  grpMarker.setLayoutData(gdGRPMarker);
  grpMarker.setLayout(glMarker);
  grpMarker.setText(Messages.getString("String_Node_Str"));
  btnMarkerVisible=new Button(grpMarker,SWT.CHECK);
  GridData gdBTNVisible=new GridData();
  gdBTNVisible.horizontalSpan=2;
  btnMarkerVisible.setLayoutData(gdBTNVisible);
  btnMarkerVisible.setText(Messages.getString("String_Node_Str"));
  btnMarkerVisible.addSelectionListener(this);
  btnMarkerVisible.setSelection(((LineSeries)series).getMarker().isVisible());
  Label lblType=new Label(grpMarker,SWT.NONE);
  GridData gdLBLType=new GridData();
  lblType.setLayoutData(gdLBLType);
  lblType.setText(Messages.getString("String_Node_Str"));
  cmbMarkerTypes=new Combo(grpMarker,SWT.DROP_DOWN | SWT.READ_ONLY);
  GridData gdCMBMarkerTypes=new GridData(GridData.FILL_HORIZONTAL);
  cmbMarkerTypes.setLayoutData(gdCMBMarkerTypes);
  cmbMarkerTypes.addSelectionListener(this);
  cmbMarkerTypes.setEnabled(btnMarkerVisible.getSelection());
  Label lblSize=new Label(grpMarker,SWT.NONE);
  GridData gdLBLSize=new GridData();
  lblSize.setLayoutData(gdLBLSize);
  lblSize.setText(Messages.getString("String_Node_Str"));
  iscMarkerSize=new IntegerSpinControl(grpMarker,SWT.NONE,((LineSeries)series).getMarker().getSize());
  GridData gdISCMarkerSize=new GridData(GridData.FILL_HORIZONTAL);
  iscMarkerSize.setLayoutData(gdISCMarkerSize);
  iscMarkerSize.setMinimum(0);
  iscMarkerSize.setMaximum(100);
  iscMarkerSize.addListener(this);
  iscMarkerSize.setEnabled(btnMarkerVisible.getSelection());
  grpLine=new Group(this,SWT.NONE);
  GridData gdGRPLine=new GridData(GridData.FILL_BOTH);
  gdGRPLine.horizontalSpan=2;
  grpLine.setLayout(new FillLayout());
  grpLine.setLayoutData(gdGRPLine);
  grpLine.setText(Messages.getString("String_Node_Str"));
  liacLine=new LineAttributesComposite(grpLine,SWT.NONE,((LineSeries)series).getLineAttributes(),true,true,true);
  liacLine.addListener(this);
  enableLineSettings(((LineSeries)series).getLineAttributes().isVisible());
  populateLists();
}