Browse Source

Fixed a bug in graph.Graph.Get()

Solomon Hykes 12 years ago
parent
commit
84e8c4aa1d
1 changed files with 1 additions and 0 deletions
  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
 }