Program: 66108
Project: 66108
Buggy source:
protected void createMisc(Group grpGeneral){
  if (getChart().getDimension().getValue() == ChartDimension.TWO_DIMENSIONAL_WITH_DEPTH) {
    Label lblUnit=new Label(grpGeneral,SWT.NONE);
    GridData gdLBLUnit=new GridData();
    gdLBLUnit.horizontalIndent=1;
    lblUnit.setLayoutData(gdLBLUnit);
    lblUnit.setText(Messages.getString("String_Node_Str"));
    cmbUnits=new Combo(grpGeneral,SWT.DROP_DOWN | SWT.READ_ONLY);
    GridData gdCMBUnits=new GridData(GridData.FILL_HORIZONTAL);
    gdCMBUnits.horizontalSpan=2;
    cmbUnits.setLayoutData(gdCMBUnits);
    cmbUnits.addSelectionListener(this);
    lblSeriesThickness=new Label(grpGeneral,SWT.NONE);
    GridData gdLBLSeriesThickness=new GridData();
    gdLBLSeriesThickness.horizontalIndent=1;
    lblSeriesThickness.setLayoutData(gdLBLSeriesThickness);
    txtSeriesThickness=new LocalizedNumberEditorComposite(grpGeneral,SWT.BORDER | SWT.SINGLE);
    new TextNumberEditorAssistField(txtSeriesThickness.getTextControl(),null);
    GridData gdTXTSeriesThickness=new GridData(GridData.FILL_HORIZONTAL);
    txtSeriesThickness.setLayoutData(gdTXTSeriesThickness);
    double dblPoints=getChart().getSeriesThickness();
    double dblCurrent=getContext().getUIServiceProvider().getConvertedValue(dblPoints,"String_Node_Str",getChart().getUnits());
    txtSeriesThickness.setValue(dblCurrent);
    txtSeriesThickness.addModifyListener(this);
    btnSeriesThickness=new Button(grpGeneral,SWT.CHECK);
    btnSeriesThickness.setText(ChartUIExtensionUtil.getAutoMessage());
    btnSeriesThickness.setSelection(!getChart().isSetSeriesThickness());
    btnSeriesThickness.addSelectionListener(this);
    txtSeriesThickness.setEnabled(!btnSeriesThickness.getSelection());
    populateLists();
  }
  if (getChart() instanceof ChartWithoutAxes) {
    Label lblColumnCount=new Label(grpGeneral,SWT.NONE);
    GridData gdLBLColumnCount=new GridData();
    gdLBLColumnCount.horizontalIndent=1;
    lblColumnCount.setLayoutData(gdLBLColumnCount);
    lblColumnCount.setText(Messages.getString("String_Node_Str"));
    iscColumnCount=new Spinner(grpGeneral,SWT.BORDER);
    GridData gdISCColumnCount=new GridData(GridData.FILL_HORIZONTAL);
    iscColumnCount.setLayoutData(gdISCColumnCount);
    iscColumnCount.setMinimum(0);
    iscColumnCount.setMaximum(5);
    iscColumnCount.setSelection(getChart().getGridColumnCount());
    iscColumnCount.addSelectionListener(this);
    btnColumnCount=new Button(grpGeneral,SWT.CHECK);
    btnColumnCount.setText(ChartUIExtensionUtil.getAutoMessage());
    btnColumnCount.setSelection(!getChart().isSetGridColumnCount());
    btnColumnCount.addSelectionListener(this);
    iscColumnCount.setEnabled(!btnColumnCount.getSelection());
  }
 else   if (getChart() instanceof ChartWithAxes) {
    Label lblUnitSpacing=new Label(grpGeneral,SWT.NONE);
    GridData gdUnitSpacing=new GridData();
    gdUnitSpacing.horizontalIndent=1;
    lblUnitSpacing.setLayoutData(gdUnitSpacing);
    lblUnitSpacing.setText(Messages.getString("String_Node_Str"));
    txtUnitSpacing=new Spinner(grpGeneral,SWT.BORDER);
    GridData gdTXTUnitSpacing=new GridData(GridData.FILL_HORIZONTAL);
    txtUnitSpacing.setLayoutData(gdTXTUnitSpacing);
    txtUnitSpacing.setMinimum(0);
    txtUnitSpacing.setMaximum(100);
    txtUnitSpacing.setIncrement(1);
    double unitSpacing=((ChartWithAxes)getChart()).getUnitSpacing();
    txtUnitSpacing.setSelection((int)unitSpacing);
    txtUnitSpacing.addSelectionListener(this);
    btnUnitSpacing=new Button(grpGeneral,SWT.CHECK);
    btnUnitSpacing.setText(ChartUIExtensionUtil.getAutoMessage());
    btnUnitSpacing.setSelection(!((ChartWithAxes)getChart()).isSetUnitSpacing());
    btnUnitSpacing.addSelectionListener(this);
    txtUnitSpacing.setEnabled(!btnUnitSpacing.getSelection());
  }
}

Fixed version (ground truth):
protected void createMisc(Group grpGeneral){
  if (getChart().getDimension().getValue() == ChartDimension.TWO_DIMENSIONAL_WITH_DEPTH) {
    Label lblUnit=new Label(grpGeneral,SWT.NONE);
    GridData gdLBLUnit=new GridData();
    gdLBLUnit.horizontalIndent=1;
    lblUnit.setLayoutData(gdLBLUnit);
    lblUnit.setText(Messages.getString("String_Node_Str"));
    cmbUnits=new Combo(grpGeneral,SWT.DROP_DOWN | SWT.READ_ONLY);
    GridData gdCMBUnits=new GridData(GridData.FILL_HORIZONTAL);
    gdCMBUnits.horizontalSpan=2;
    cmbUnits.setLayoutData(gdCMBUnits);
    cmbUnits.addSelectionListener(this);
    lblSeriesThickness=new Label(grpGeneral,SWT.NONE);
    GridData gdLBLSeriesThickness=new GridData();
    gdLBLSeriesThickness.horizontalIndent=1;
    lblSeriesThickness.setLayoutData(gdLBLSeriesThickness);
    txtSeriesThickness=new LocalizedNumberEditorComposite(grpGeneral,SWT.BORDER | SWT.SINGLE);
    new TextNumberEditorAssistField(txtSeriesThickness.getTextControl(),null);
    GridData gdTXTSeriesThickness=new GridData(GridData.FILL_HORIZONTAL);
    txtSeriesThickness.setLayoutData(gdTXTSeriesThickness);
    double dblPoints=getChart().getSeriesThickness();
    double dblCurrent=getContext().getUIServiceProvider().getConvertedValue(dblPoints,"String_Node_Str",getUnits());
    txtSeriesThickness.setValue(dblCurrent);
    txtSeriesThickness.addModifyListener(this);
    btnSeriesThickness=new Button(grpGeneral,SWT.CHECK);
    btnSeriesThickness.setText(ChartUIExtensionUtil.getAutoMessage());
    btnSeriesThickness.setSelection(!getChart().isSetSeriesThickness());
    btnSeriesThickness.addSelectionListener(this);
    txtSeriesThickness.setEnabled(!btnSeriesThickness.getSelection());
    populateLists();
  }
  if (getChart() instanceof ChartWithoutAxes) {
    Label lblColumnCount=new Label(grpGeneral,SWT.NONE);
    GridData gdLBLColumnCount=new GridData();
    gdLBLColumnCount.horizontalIndent=1;
    lblColumnCount.setLayoutData(gdLBLColumnCount);
    lblColumnCount.setText(Messages.getString("String_Node_Str"));
    iscColumnCount=new Spinner(grpGeneral,SWT.BORDER);
    GridData gdISCColumnCount=new GridData(GridData.FILL_HORIZONTAL);
    iscColumnCount.setLayoutData(gdISCColumnCount);
    iscColumnCount.setMinimum(0);
    iscColumnCount.setMaximum(5);
    iscColumnCount.setSelection(getChart().getGridColumnCount());
    iscColumnCount.addSelectionListener(this);
    btnColumnCount=new Button(grpGeneral,SWT.CHECK);
    btnColumnCount.setText(ChartUIExtensionUtil.getAutoMessage());
    btnColumnCount.setSelection(!getChart().isSetGridColumnCount());
    btnColumnCount.addSelectionListener(this);
    iscColumnCount.setEnabled(!btnColumnCount.getSelection());
  }
 else   if (getChart() instanceof ChartWithAxes) {
    Label lblUnitSpacing=new Label(grpGeneral,SWT.NONE);
    GridData gdUnitSpacing=new GridData();
    gdUnitSpacing.horizontalIndent=1;
    lblUnitSpacing.setLayoutData(gdUnitSpacing);
    lblUnitSpacing.setText(Messages.getString("String_Node_Str"));
    txtUnitSpacing=new Spinner(grpGeneral,SWT.BORDER);
    GridData gdTXTUnitSpacing=new GridData(GridData.FILL_HORIZONTAL);
    txtUnitSpacing.setLayoutData(gdTXTUnitSpacing);
    txtUnitSpacing.setMinimum(0);
    txtUnitSpacing.setMaximum(100);
    txtUnitSpacing.setIncrement(1);
    double unitSpacing=((ChartWithAxes)getChart()).getUnitSpacing();
    txtUnitSpacing.setSelection((int)unitSpacing);
    txtUnitSpacing.addSelectionListener(this);
    btnUnitSpacing=new Button(grpGeneral,SWT.CHECK);
    btnUnitSpacing.setText(ChartUIExtensionUtil.getAutoMessage());
    btnUnitSpacing.setSelection(!((ChartWithAxes)getChart()).isSetUnitSpacing());
    btnUnitSpacing.addSelectionListener(this);
    txtUnitSpacing.setEnabled(!btnUnitSpacing.getSelection());
  }
}