Program: 74466
Project: 74466
Buggy source:
public void actionPerformed(ActionEvent e){
  super.actionPerformed(e);
  double x;
  double y;
  if ((getSourceType() == TOOLBAR_TYPE) || (getSourceType() == MENUBAR_TYPE)) {
    BasicGraphFrame frame=ActorEditorGraphController.this.getFrame();
    Point2D center;
    if (frame != null) {
      center=frame.getCenter();
      x=center.getX();
      y=center.getY();
    }
 else {
      GraphPane pane=getGraphPane();
      center=pane.getSize();
      x=center.getX() / 2;
      y=center.getY() / 2;
    }
  }
 else {
    AffineTransform current=getGraphPane().getTransformContext().getTransform();
    AffineTransform inverse;
    try {
      inverse=current.createInverse();
    }
 catch (    NoninvertibleTransformException ex) {
      throw new RuntimeException(ex.toString());
    }
    Point2D point=new Point2D.Double(getX(),getY());
    inverse.transform(point,point);
    x=point.getX();
    y=point.getY();
  }
  ActorGraphModel graphModel=(ActorGraphModel)getGraphModel();
  double[] point=SnapConstraint.constrainPoint(x,y);
  final NamedObj toplevel=graphModel.getPtolemyModel();
  if (!(toplevel instanceof CompositeEntity)) {
    throw new InternalErrorException("String_Node_Str" + "String_Node_Str");
  }
  final String relationName=toplevel.uniqueName("String_Node_Str");
  final String vertexName="String_Node_Str";
  StringBuffer moml=new StringBuffer();
  moml.append("String_Node_Str" + relationName + "String_Node_Str");
  moml.append("String_Node_Str" + vertexName + "String_Node_Str");
  moml.append(point[0] + "String_Node_Str" + point[1]);
  moml.append("String_Node_Str");
  moml.append("String_Node_Str");
  MoMLChangeRequest request=new MoMLChangeRequest(this,toplevel,moml.toString());
  request.setUndoable(true);
  toplevel.requestChange(request);
}

Fixed version (ground truth):
public void actionPerformed(ActionEvent e){
  super.actionPerformed(e);
  double x;
  double y;
  if ((getSourceType() == TOOLBAR_TYPE) || (getSourceType() == MENUBAR_TYPE)) {
    BasicGraphFrame frame=ActorEditorGraphController.this.getFrame();
    Point2D center;
    if (frame != null) {
      center=frame.getCenter();
      x=center.getX();
      y=center.getY();
    }
 else {
      GraphPane pane=getGraphPane();
      center=pane.getSize();
      x=center.getX() / 2;
      y=center.getY() / 2;
    }
  }
 else {
    AffineTransform current=getGraphPane().getTransformContext().getTransform();
    AffineTransform inverse;
    try {
      inverse=current.createInverse();
    }
 catch (    NoninvertibleTransformException ex) {
      throw new RuntimeException(ex.toString());
    }
    Point2D point=new Point2D.Double(getX(),getY());
    inverse.transform(point,point);
    x=point.getX();
    y=point.getY();
  }
  ActorGraphModel graphModel=(ActorGraphModel)getGraphModel();
  double[] point=_offsetVertex(SnapConstraint.constrainPoint(x,y));
  final NamedObj toplevel=graphModel.getPtolemyModel();
  if (!(toplevel instanceof CompositeEntity)) {
    throw new InternalErrorException("String_Node_Str" + "String_Node_Str");
  }
  final String relationName=toplevel.uniqueName("String_Node_Str");
  final String vertexName="String_Node_Str";
  StringBuffer moml=new StringBuffer();
  moml.append("String_Node_Str" + relationName + "String_Node_Str");
  moml.append("String_Node_Str" + vertexName + "String_Node_Str");
  moml.append(point[0] + "String_Node_Str" + point[1]);
  moml.append("String_Node_Str");
  moml.append("String_Node_Str");
  MoMLChangeRequest request=new MoMLChangeRequest(this,toplevel,moml.toString());
  request.setUndoable(true);
  toplevel.requestChange(request);
}