@Override
	public void mouseReleased(MouseEvent e) {
		now_resizing = false;
		d.setCursor(new Cursor(Cursor.DEFAULT_CURSOR));
		if(p.getCurrentTool() != -1 && e.getButton() == MouseEvent.BUTTON1 && dragged){
			p.addFigures(p.getCurrentTool(), oringin_x, origin_y, delta_x, delta_y);
		}
		dragged = false;
	}