瀏覽代碼

Fixed a bug in graph.Graph.Get()

Solomon Hykes 12 年之前
父節點
當前提交
84e8c4aa1d
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      graph/graph.go

+ 1 - 0
graph/graph.go

@@ -42,6 +42,7 @@ func (graph *Graph) Get(id string) (*Image, error) {
 	if img.Id != id {
 		return nil, fmt.Errorf("Image stored at '%s' has wrong id '%s'", id, img.Id)
 	}
+	img.graph = graph
 	return img, nil
 }