Program: 58662
Project: 58662
Buggy source:
@Override public void display(GL gl){
  processEvents();
  if (generalManager.isWiiModeActive()) {
    handleWiiInput();
  }
  if (generalManager.getTrackDataProvider().isTrackModeActive()) {
    handleTrackInput(gl);
  }
  if (bIsDraggingActiveLevel2) {
    handleCursorDraggingLevel2(gl);
    if (glMouseListener.wasMouseReleased()) {
      bIsDraggingActiveLevel2=false;
    }
  }
  if (bIsDraggingWholeBlockLevel2) {
    handleBlockDraggingLevel2(gl);
    if (glMouseListener.wasMouseReleased()) {
      bIsDraggingWholeBlockLevel2=false;
    }
  }
  if (bIsDraggingActiveLevel1) {
    handleCursorDraggingLevel1(gl);
    if (glMouseListener.wasMouseReleased()) {
      bIsDraggingActiveLevel1=false;
    }
  }
  if (bIsDraggingWholeBlockLevel1) {
    handleBlockDraggingLevel1(gl);
    if (glMouseListener.wasMouseReleased()) {
      bIsDraggingWholeBlockLevel1=false;
    }
  }
  if (bDragDropExpGroup) {
    handleDragDropGroupExperiments(gl);
    if (glMouseListener.wasMouseReleased()) {
      bDragDropExpGroup=false;
    }
  }
  if (bDragDropGeneGroup) {
    handleDragDropGroupGenes(gl);
    if (glMouseListener.wasMouseReleased()) {
      bDragDropGeneGroup=false;
    }
  }
  gl.glCallList(iGLDisplayListToCall);
  float fright=0.0f;
  float ftop=viewFrustum.getTop();
  float fleftOffset=0;
  if (bSkipLevel1 == false) {
    gl.glTranslatef(GAP_LEVEL2_3,0,0);
  }
  if (bSkipLevel2 == false) {
    if (bIsHeatmapInFocus) {
      fright=viewFrustum.getWidth() - 1.2f;
      fleftOffset=0.095f + GAP_LEVEL1_2 + viewFrustum.getWidth() / 4f * 0.2f;
    }
 else {
      fright=viewFrustum.getWidth() - 2.75f;
      fleftOffset=0.075f + GAP_LEVEL1_2 + viewFrustum.getWidth() / 4f;
    }
    if (glHeatMapView.isInDefaultOrientation()) {
      gl.glTranslatef(fleftOffset,+0.4f,0);
    }
 else {
      gl.glTranslatef(fleftOffset,-0.2f,0);
    }
  }
 else {
    ftop=viewFrustum.getTop();
    if (bGeneDendrogramActive) {
      fright=viewFrustum.getWidth() - 1.4f;
      gl.glTranslatef(1.7f,-0.2f,0);
    }
 else {
      fright=viewFrustum.getWidth();
      gl.glTranslatef(0.1f,-0.2f,0);
    }
  }
  if (bExperimentDendrogramActive) {
    glHeatMapView.getViewFrustum().setTop(ftop - 1.45f);
  }
 else {
    glHeatMapView.getViewFrustum().setTop(ftop);
  }
  glHeatMapView.getViewFrustum().setRight(fright);
  gl.glPushName(pickingManager.getPickingID(iUniqueID,EPickingType.HIER_HEAT_MAP_EMBEDDED_HEATMAP_SELECTION,glHeatMapView.getID()));
  glHeatMapView.displayRemote(gl);
  gl.glPopName();
  fWidthEHM=glHeatMapView.getViewFrustum().getWidth() - 0.95f;
  if (bExperimentDendrogramActive) {
    gl.glTranslatef(0f,3.6f,0f);
    gl.glPushName(pickingManager.getPickingID(iUniqueID,EPickingType.HIER_HEAT_MAP_EXPERIMENT_DENDROGRAM_SELECTION,glExperimentDendrogramView.getID()));
    glExperimentDendrogramView.getViewFrustum().setTop(ftop - 3.6f);
    glExperimentDendrogramView.getViewFrustum().setRight(fWidthEHM);
    glExperimentDendrogramView.setDisplayListDirty();
    glExperimentDendrogramView.displayRemote(gl);
    gl.glPopName();
    gl.glTranslatef(0f,-3.6f,0f);
  }
  if (bSkipLevel2 == false) {
    if (glHeatMapView.isInDefaultOrientation()) {
      gl.glTranslatef(-fleftOffset,-0.4f,0);
    }
 else {
      gl.glTranslatef(-fleftOffset,+0.2f,0);
    }
  }
 else {
    if (bGeneDendrogramActive) {
      gl.glTranslatef(-1.7f,+0.2f,0);
    }
 else {
      gl.glTranslatef(-0.1f,+0.2f,0);
    }
  }
  if (bSkipLevel1 == false) {
    gl.glTranslatef(-GAP_LEVEL2_3,0,0);
  }
  if (bGeneDendrogramActive) {
    gl.glTranslatef(0f,0.4f,0f);
    gl.glPushName(pickingManager.getPickingID(iUniqueID,EPickingType.HIER_HEAT_MAP_GENE_DENDROGRAM_SELECTION,glGeneDendrogramView.getID()));
    glGeneDendrogramView.getViewFrustum().setTop(ftop - 0.6f);
    glGeneDendrogramView.getViewFrustum().setRight(1.7f);
    glGeneDendrogramView.setDisplayListDirty();
    glGeneDendrogramView.displayRemote(gl);
    gl.glPopName();
    gl.glTranslatef(0f,-0.4f,0f);
  }
  contextMenu.render(gl,this);
}

Fixed version (ground truth):
@Override public void display(GL gl){
  processEvents();
  if (generalManager.isWiiModeActive()) {
    handleWiiInput();
  }
  if (generalManager.getTrackDataProvider().isTrackModeActive()) {
    handleTrackInput(gl);
  }
  if (bIsDraggingActiveLevel2) {
    handleCursorDraggingLevel2(gl);
    if (glMouseListener.wasMouseReleased()) {
      bIsDraggingActiveLevel2=false;
    }
  }
  if (bIsDraggingWholeBlockLevel2) {
    handleBlockDraggingLevel2(gl);
    if (glMouseListener.wasMouseReleased()) {
      bIsDraggingWholeBlockLevel2=false;
    }
  }
  if (bIsDraggingActiveLevel1) {
    handleCursorDraggingLevel1(gl);
    if (glMouseListener.wasMouseReleased()) {
      bIsDraggingActiveLevel1=false;
    }
  }
  if (bIsDraggingWholeBlockLevel1) {
    handleBlockDraggingLevel1(gl);
    if (glMouseListener.wasMouseReleased()) {
      bIsDraggingWholeBlockLevel1=false;
    }
  }
  if (bDragDropExpGroup) {
    handleDragDropGroupExperiments(gl);
    if (glMouseListener.wasMouseReleased()) {
      bDragDropExpGroup=false;
    }
  }
  if (bDragDropGeneGroup) {
    handleDragDropGroupGenes(gl);
    if (glMouseListener.wasMouseReleased()) {
      bDragDropGeneGroup=false;
    }
  }
  gl.glCallList(iGLDisplayListToCall);
  float fright=0.0f;
  float ftop=viewFrustum.getTop();
  float fleftOffset=0;
  if (bSkipLevel1 == false) {
    gl.glTranslatef(GAP_LEVEL2_3,0,0);
  }
  if (bSkipLevel2 == false) {
    if (bIsHeatmapInFocus) {
      fright=viewFrustum.getWidth() - 1.2f;
      fleftOffset=0.095f + GAP_LEVEL1_2 + viewFrustum.getWidth() / 4f * 0.2f;
    }
 else {
      fright=viewFrustum.getWidth() - 2.75f;
      fleftOffset=0.075f + GAP_LEVEL1_2 + viewFrustum.getWidth() / 4f;
    }
    if (glHeatMapView.isInDefaultOrientation()) {
      gl.glTranslatef(fleftOffset,+0.4f,0);
    }
 else {
      gl.glTranslatef(fleftOffset,-0.2f,0);
    }
  }
 else {
    ftop=viewFrustum.getTop();
    if (bGeneDendrogramActive) {
      fright=viewFrustum.getWidth() - 1.4f;
      gl.glTranslatef(1.7f,-0.2f,0);
    }
 else {
      fright=viewFrustum.getWidth();
      gl.glTranslatef(0.1f,-0.2f,0);
    }
  }
  if (bExperimentDendrogramActive) {
    glHeatMapView.getViewFrustum().setTop(ftop - 1.45f);
  }
 else {
    glHeatMapView.getViewFrustum().setTop(ftop);
  }
  glHeatMapView.getViewFrustum().setRight(fright);
  gl.glPushName(pickingManager.getPickingID(iUniqueID,EPickingType.HIER_HEAT_MAP_EMBEDDED_HEATMAP_SELECTION,glHeatMapView.getID()));
  glHeatMapView.displayRemote(gl);
  gl.glPopName();
  fWidthEHM=glHeatMapView.getViewFrustum().getWidth() - 0.95f;
  if (bExperimentDendrogramActive) {
    gl.glTranslatef(0f,3.6f,0f);
    gl.glPushName(pickingManager.getPickingID(iUniqueID,EPickingType.HIER_HEAT_MAP_EXPERIMENT_DENDROGRAM_SELECTION,glExperimentDendrogramView.getID()));
    glExperimentDendrogramView.getViewFrustum().setTop(ftop - 3.6f);
    glExperimentDendrogramView.getViewFrustum().setRight(fWidthEHM);
    glExperimentDendrogramView.displayRemote(gl);
    gl.glPopName();
    gl.glTranslatef(0f,-3.6f,0f);
  }
  if (bSkipLevel2 == false) {
    if (glHeatMapView.isInDefaultOrientation()) {
      gl.glTranslatef(-fleftOffset,-0.4f,0);
    }
 else {
      gl.glTranslatef(-fleftOffset,+0.2f,0);
    }
  }
 else {
    if (bGeneDendrogramActive) {
      gl.glTranslatef(-1.7f,+0.2f,0);
    }
 else {
      gl.glTranslatef(-0.1f,+0.2f,0);
    }
  }
  if (bSkipLevel1 == false) {
    gl.glTranslatef(-GAP_LEVEL2_3,0,0);
  }
  if (bGeneDendrogramActive) {
    gl.glTranslatef(0f,0.4f,0f);
    gl.glPushName(pickingManager.getPickingID(iUniqueID,EPickingType.HIER_HEAT_MAP_GENE_DENDROGRAM_SELECTION,glGeneDendrogramView.getID()));
    glGeneDendrogramView.getViewFrustum().setTop(ftop - 0.6f);
    glGeneDendrogramView.getViewFrustum().setRight(1.7f);
    glGeneDendrogramView.displayRemote(gl);
    gl.glPopName();
    gl.glTranslatef(0f,-0.4f,0f);
  }
  contextMenu.render(gl,this);
}