Kevin Trometer 8 년 전
부모
커밋
c3d44a9262
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/ui/view/UnitGraph.java

+ 1 - 1
src/ui/view/UnitGraph.java

@@ -71,7 +71,7 @@ class UnitGraph extends JPanel implements MouseListener, MouseMotionListener, Co
 	@Override
 	public void mouseDragged(MouseEvent e) {
 		if (pointDrag) {
-			pointList[tempP].setLocation(e.getX(), e.getY());
+			pointList[tempP].setLocation(pointList[TempP].getX(), e.getY());
 			System.out.println("drag");
 		}
 		repaint();