Program: 58481
Project: 58481
Buggy source:
private void RenderScatterPoints(GL gl){
  float XScale=renderStyle.getRenderWidth() - XYAXISDISTANCE * 2.0f;
  float YScale=renderStyle.getRenderHeight() - XYAXISDISTANCE * 2.0f;
  float x=0.0f;
  float y=0.0f;
  float xnormalized=0.0f;
  float ynormalized=0.0f;
  float x_2=0.0f;
  float y_2=0.0f;
  EScatterPointType tmpPointStyle=POINTSTYLE;
  float[] fArMappingColor={0.0f,0.0f,0.0f};
  if (detailLevel != EDetailLevel.HIGH) {
    bRender2Axis=false;
    POINTSTYLE=EScatterPointType.POINT;
  }
  Collection<Integer> selectionSet=contentVA.getIndexList();
  if (bRender2Axis)   if (elementSelectionManager.getNumberOfElements(SelectionType.SELECTION) > 0)   selectionSet=elementSelectionManager.getElements(SelectionType.SELECTION);
  for (  Integer iContentIndex : selectionSet) {
    if (iContentIndex == -1) {
      continue;
    }
    xnormalized=set.get(SELECTED_X_AXIS).getFloat(EDataRepresentation.NORMALIZED,iContentIndex);
    ynormalized=set.get(SELECTED_Y_AXIS).getFloat(EDataRepresentation.NORMALIZED,iContentIndex);
    x=transformOnZoom(xnormalized) * XScale;
    y=ynormalized * YScale;
    if (bUseColor)     fArMappingColor=colorMapper.getColor(Math.max(xnormalized,ynormalized));
    EScatterPointType tmpPoint=POINTSTYLE;
    if (bRender2Axis) {
      fArMappingColor=new float[]{1.0f,0.0f,0.0f};
      POINTSTYLE=EScatterPointType.POINT;
    }
    DrawPointPrimitive(gl,x,y,0.0f,fArMappingColor,1.0f,iContentIndex,1.0f);
    if (bRender2Axis) {
      xnormalized=set.get(SELECTED_X_AXIS_2).getFloat(EDataRepresentation.NORMALIZED,iContentIndex);
      ynormalized=set.get(SELECTED_Y_AXIS_2).getFloat(EDataRepresentation.NORMALIZED,iContentIndex);
      x_2=transformOnZoom(xnormalized) * XScale;
      y_2=ynormalized * YScale;
      fArMappingColor=new float[]{0.0f,1.0f,0.0f};
      DrawPointPrimitive(gl,x_2,y_2,0.0f,fArMappingColor,1.0f,iContentIndex,1.0f);
      POINTSTYLE=tmpPoint;
      gl.glColor3f(0.0f,0.0f,1.0f);
      gl.glLineWidth(0.5f);
      gl.glBegin(GL.GL_LINES);
      gl.glVertex3f(x,y,1.0f);
      gl.glVertex3f(x_2,y_2,1.0f);
      gl.glEnd();
    }
  }
  POINTSTYLE=tmpPointStyle;
}

Fixed version (ground truth):
private void RenderScatterPoints(GL gl){
  float XScale=renderStyle.getRenderWidth() - XYAXISDISTANCE * 2.0f;
  float YScale=renderStyle.getRenderHeight() - XYAXISDISTANCE * 2.0f;
  float x=0.0f;
  float y=0.0f;
  float xnormalized=0.0f;
  float ynormalized=0.0f;
  float x_2=0.0f;
  float y_2=0.0f;
  EScatterPointType tmpPointStyle=POINTSTYLE;
  float[] fArMappingColor={0.0f,0.0f,0.0f};
  if (detailLevel != EDetailLevel.HIGH) {
    bRender2Axis=false;
    POINTSTYLE=EScatterPointType.POINT;
  }
  Collection<Integer> selectionSet=contentVA.getIndexList();
  if (bRender2Axis)   if (elementSelectionManager.getNumberOfElements(SelectionType.SELECTION) > 0)   selectionSet=elementSelectionManager.getElements(SelectionType.SELECTION);
  for (  Integer iContentIndex : selectionSet) {
    if (iContentIndex == -1) {
      continue;
    }
    xnormalized=set.get(storageVA.get(SELECTED_X_AXIS)).getFloat(EDataRepresentation.NORMALIZED,iContentIndex);
    ynormalized=set.get(storageVA.get(SELECTED_Y_AXIS)).getFloat(EDataRepresentation.NORMALIZED,iContentIndex);
    x=transformOnZoom(xnormalized) * XScale;
    y=ynormalized * YScale;
    if (bUseColor)     fArMappingColor=colorMapper.getColor(Math.max(xnormalized,ynormalized));
    EScatterPointType tmpPoint=POINTSTYLE;
    if (bRender2Axis) {
      fArMappingColor=new float[]{1.0f,0.0f,0.0f};
      POINTSTYLE=EScatterPointType.POINT;
    }
    DrawPointPrimitive(gl,x,y,0.0f,fArMappingColor,1.0f,iContentIndex,1.0f);
    if (bRender2Axis) {
      xnormalized=set.get(storageVA.get(SELECTED_X_AXIS_2)).getFloat(EDataRepresentation.NORMALIZED,iContentIndex);
      ynormalized=set.get(storageVA.get(SELECTED_Y_AXIS_2)).getFloat(EDataRepresentation.NORMALIZED,iContentIndex);
      x_2=transformOnZoom(xnormalized) * XScale;
      y_2=ynormalized * YScale;
      fArMappingColor=new float[]{0.0f,1.0f,0.0f};
      DrawPointPrimitive(gl,x_2,y_2,0.0f,fArMappingColor,1.0f,iContentIndex,1.0f);
      POINTSTYLE=tmpPoint;
      gl.glColor3f(0.0f,0.0f,1.0f);
      gl.glLineWidth(0.5f);
      gl.glBegin(GL.GL_LINES);
      gl.glVertex3f(x,y,1.0f);
      gl.glVertex3f(x_2,y_2,1.0f);
      gl.glEnd();
    }
  }
  POINTSTYLE=tmpPointStyle;
}